Zeddy
Member • Aug 25, 2011
for loop problem
hey guys, I'm not that good in programming, can you help me to answer this?
1. Write a program to list the numbers from 0-25, their squares, 3rd power, and 4th power.
2. Write a program that reads in a number N and then outputs the sum from 1 to N.
if the input is 3, the output should be 14 because 1^2+2^2+3^2=1+4+9=14
I need it right, please for those expert on this kindly attache the source code.
1. Write a program to list the numbers from 0-25, their squares, 3rd power, and 4th power.
2. Write a program that reads in a number N and then outputs the sum from 1 to N.
if the input is 3, the output should be 14 because 1^2+2^2+3^2=1+4+9=14
I need it right, please for those expert on this kindly attache the source code.