acode

use awhile loop so that the user can per form 1+2^x+3^x+....+n^x.
No one will do your homework here.
first take in the values of x and n from the user. Then set up a for loop with a counter starting at zero and going to n.
Topic archived. No new replies allowed.