Related:

- Write a c++ program to find the sum of squares of first n natural numbers
- Program to find sum of squares of n numbers - Best answers
- Find the sum of squares first n natural numbers c++ program - Best answers
- How to write & in laptop - Guide
- How to write e with accent - Guide
- Diskpart has encountered an error: the media is write protected. ✓ - Pen Drive, USB & SD Card Forum
- Datatraveler 100 g3 write protected ✓ - Pen Drive, USB & SD Card Forum
- Write down the steps to change the wallpaper of the desktop - Guide

## 1 response

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;

}

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