Write a program to print sum of squares of even nos.frm. 2-100
Java Programing
Answers
Answered by
1
Answer:
class sum_squares
{
public static void main()
{
int sum=0;
for(int i=2;i>=100;i++)
{
if(i%2==0)
sum+=(i*i);
}
System.out.println("Sum of squares of even nos from 2-100 is "+sum);
}
}
Similar questions