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 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
Get step-by-step solutions from verified subject matter experts
