I need to calculate a sum of cubes in one of my programs, but have no idea how to get started. I started using a For loop but have had lots of trouble getting results. I am asking the user to put in a maximum integer and i cube it, then i add the values before it cubed. Ie: a user enters 5 and i need to calculate 5^3 + 4^3 + 3^3 + 2^3 + 1^3. I don't know how to do this and its a pretty big part of my program. Thanks!

07-10-2003

faxtoaster

still confused

i know that i should be using a function, but i can't figure out the loop. i have it set up like this: