Make program to print the sum of squares of even numbers from 1 to 20
Answers
Answered by
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
Science,
5 months ago
Chemistry,
5 months ago
Physics,
11 months ago
Social Sciences,
11 months ago
Political Science,
1 year ago