Rewrite the pseudo code to load the array, Rain, with 12 rainfall amounts using K = 1 as the initial value of K. Rewrite the pseudo code of Example 7.2 using While loops instead of For loops. Declare...


Rewrite the pseudo code to load the array, Rain, with 12 rainfall amounts using K = 1 as the initial value of K. Rewrite the pseudo code of Example 7.2 using While loops instead of For loops.


Declare A[12] As Integer


Declare K As Integer


Set A[2] = 10


Set K = 1


While K


Set A[2 * K + 2] = K


Write A[2 * K]


Set K = K + 1


End While




May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here