Related:

- C++ program to find sum of squares of digits of a number
- C++ program to find sum of squares of numbers - Best answers
- Sum of squares c++ - 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 Find Square Root in C Program - How-To - Programming
- Square brackets mac - Guide
- Write a unix system program to read a file in reverse - How-To - Shell

## 1 reply

don

#include <iostream>

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;

}

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

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;

}

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