Related:

- C++ program to find sum of squares of digits of a number
- C++ program to find sum of squares of numbers - Best answers
- Write a c++ program to find the sum of squares of first n natural numbers - Best answers
- C program to find sum of series 1+11+111 ✓ - Forum - Programming
- Find the sum 41 using only digits/operations ✓ - Forum - Network
- How to calculate square root in C programming - Guide
- Youtube program for pc - Download
- Bios password reset program - Download

## 1 reply

using namespace std;

int main()

{

int i,sum; // variables

sum = 0; // initialize sum

/* recursive addition of squares */

for (i = 1; I <= 30; i++)

sum = sum + (i * i);

cout << sum <<" is the sum of the first 30 squares."

<< endl;

return 0;

}

.........................................