0

Sum of squares of 1 to 20 even numbers

Answer

17th Feb 2017, 3:59 PM
Nagaraju Doti
Nagaraju Doti - avatar
5 Réponses
0
What do you mean? 2² 4² 6²... Or 2² 4⁴...
17th Feb 2017, 4:01 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
Yah sum of that numbers
17th Feb 2017, 4:02 PM
Nagaraju Doti
Nagaraju Doti - avatar
0
Just squares
17th Feb 2017, 4:02 PM
Nagaraju Doti
Nagaraju Doti - avatar
0
4 16 36 64 100 144 196 256 324 400
17th Feb 2017, 4:08 PM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
#include<iostream.h> void main() { int sum=0; for(int i=1; i<=20; i++) if(i%2==0) sum=sum+(i*i) ; cout<<sum; }
17th Feb 2017, 6:03 PM
Saksham Johri
Saksham Johri - avatar