0

Hello all,

I'm working with exponentiation and I have an assignment to write a code for loop initialization and loop body but unfortunately, I don't even know what that means.

I was given the following information:

Input x // can be any float

Input y // has to be a positive integer

Set result = 1 // initial value

For i = 1 to y

result = result * x

Can anyone PLEASE translate what that means and show me an example of a loop initialization and loop body code? Please advise if you need more info. I apologize in advance for being slow.