- 1
Write an C++ program to Find the sum of the series 1+4+9+16+____+100
c+ programming
6 Respuestas
0
wht is the out put
0
cout << 385;
0
sequence seems to be (n^2) where n=1...10.
#include<iostream>
using namespace std;
int main (){
int sum,i;
sum=0;
for(i=1;i<=10;++i)
sum += (i*i);
cout << sum;
return 0;
}
0
dear sizr please send me the accurate answer of that question
0
it's 385..
sorry I mistook ur question, to write CPP program ;-)😉
0
hey please write the code