Question

Write a program to calculate and display sum of the following series using for loop x+x2+x3+………xn...


Write a program to calculate and display sum of the following series using
for loop
x+x2+x3+………xn

Transcribed: Write a program to calculate and display sum of the following series using for loop x+x²+x³+..x"

Answer

Code:

Computer Science homework question answer, step 1, image 1

Output:

Computer Science homework question answer, step 1, image 2

Code:

Computer Science homework question answer, step 2, image 1

Output:

Computer Science homework question answer, step 2, image 2

Recent Questions