Can someone help me do this question?
"Write a for loop that computes the sum of the odd number from 1 to a maximum value entered by the user."
please help me, my teacher isn't helping me that much
I could help but I do not know what is the maximum value of the user.:)
The user should decide what maximum value he/she will be using.
I need a for loop statement in it :(
Never mind the question, my teacher changed it into:
"Write a for loop that computes the sum of every number from 1 to the MAXIMUM VALUE that the user entered"
Need help :(
There's plenty of help already here is this thread.
The only bit left for you to do is to get the user input.
Yep I got it!
just changed z += 2 into z ++ .
Great, Thanks Chervil, I got a perfect score :3