- 1

Write an C++ program to Find the sum of the series 1+4+9+16+____+100

c+ programming

24th Feb 2017, 2:42 PM
Smarty Boy Krishna Khandelwal
Smarty Boy Krishna Khandelwal - avatar
6 Respuestas
0
wht is the out put
24th Feb 2017, 2:44 PM
dagi
dagi - avatar
0
cout << 385;
24th Feb 2017, 2:57 PM
Álvaro
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; }
24th Feb 2017, 3:10 PM
Sizr
Sizr - avatar
0
dear sizr please send me the accurate answer of that question
24th Feb 2017, 3:58 PM
Smarty Boy Krishna Khandelwal
Smarty Boy Krishna Khandelwal - avatar
0
it's 385.. sorry I mistook ur question, to write CPP program ;-)😉
24th Feb 2017, 4:23 PM
Sizr
Sizr - avatar
0
hey please write the code
24th Feb 2017, 4:46 PM
Smarty Boy Krishna Khandelwal
Smarty Boy Krishna Khandelwal - avatar