Computer Science, asked by niyajuddin3999, 11 months ago

Make program to print the sum of squares of even numbers from 1 to 20

Answers

Answered by varadhabala29
0

Answer:

void main()

{

int a=2,sum=0;

while(a<=20)

{

sum=sum+(a*a)

a=a+2;

}

cout<<"Sum of squares of even numbers from 1 to 20="<<sum;

}

Similar questions