
Let’s write a program using for loop to find the sum of the squares of the integers from 1 to n. Where n is a positive value entered by the user (i.e. Sum = 12 + 22 + 32 + ……+ n2)
The code of the program is given below:
In the program we declared three variables i, n and sum. We prompted the user...