Computer Science, asked by arush6244, 1 year ago

write a program in Java to sum of even no less than 100

Answers

Answered by zip1819
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