183k views
2 votes
Write a Program that will print all the numbers divisible by 2 between 0 and 100​

User Antimo
by
3.5k points

1 Answer

5 votes

Answer:

//In java

for (int i = 0; i <= 100; i++)

{

if ( i % 2 == 0 )

{

System.out.println( i + " ");

}

}

User Skaue
by
3.5k points