Anda di halaman 1dari 1

Main

Integer n, i

String pilih

Input n

Input pilih

Real Array P[n], W[n], t[n]

False True
pilih="P"

Next
False True
i = 0 to n-1
pilih="W"

Done

Input W [i]
False True Next
pilih="t" i = 0 to n-1

Input t[i]
Done

Next Input P[i]


Output "Input Salah!"
i = 0 to n-1
P[i] = W[i]/t[i]

Done
Input t[i]
Input P[i]

Next
W[i] = P[i]*t[i] i = 0 to n-1
Input W [i]
Done

Output P[i]
t[i] = W[i]/P[i] Next
i = 0 to n-1

Done

Next Output W[i]


i = 0 to n-1

Done

Output t[i]

End