write a program in Java to sum of even no less than 100
Answers
Answered by
1
public class sum
{
public static void main()
{
int sum; sum=0;
for(int i=2;i<=98;i++)
{
sum=sum+i;
}
System.out.print(sum);
}
}
Similar questions
Social Sciences,
6 months ago
Geography,
6 months ago
History,
6 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago