#include<iostream>
using namespace std;
int main()
{
int count,sum=0;
for(count=1;count<=10;count++)
sum += count*count;
cout<<"sum s2:"<<sum;
return 0;
}
.....................
#include<iostream>
using namespace std;
int main()
{
int count,sum;
for(count=1;count<=10;count++)
sum += count*count;
cout<<"sum s2:"<<sum;
return 0;