Write the program to display the sum of even numbers between 100 and
200.
Answers
Answered by
2
Answer:
int start = 100;
int end = 200;
for(int i = start; i <=end; i++){
if( i % 2 == 0 ){
System.out.println("even num "+i);
}
}
Explanation:
check this
Similar questions