Question: Write a C++ program to read a value N from the user and find the sum of the square of integer number from 1

Write a C++ program to read a value N from the user 



Write a C++ program to read a value N from the user and find the sum of the square of integer number from 1 to N. The value of the N can be from 1 to 10. The program must store the sequence in an array and print the series and sum as shown in the expected output. Sample input (N): 3 Expected output: Series: 1 4 9 Sum: 14

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!