Need help ASAP!! please -hardest question ever for me-

Try your best please!


- Using a for loop statement to

a. Display the third power of following numbers 1, 2, 3, ..., 50

b. Calculate and display the sum of the squares of following numbers 1, 2, 3, ..., 25

c. Display the following sequence: 3, 6, 9, 12, 15, ..., 36.

Can you please explain it to me ?

Last edited on
Ehm... what's to explain? What's your level? Do you know what a for loop is? If you do, what can't you understand of that question?
p.s.: no space between "me" and the question mark ;)
Last edited on
Those are actually 3 different questions. Each of (a), (b) and (c) would require its own for loop. You can learn about for loops in the tutorial on this site:

The third power of a number is x * x * x
The square of a number is x * x

This is actually a very straight-forward homework problem. I suggest you look over your text book or lecture notes for examples of using for loops.
Registered users can post here. Sign in or register to post.