Q:

using continue statement, write java program prints even numbers between 0 to 100

0

using continue statement, write java program prints even numbers between 0 to 100

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

import java.util.Scanner;
public class Main
{
	public static void main(String[] args) {
	  for(int i=0;i<=100;i++)
	    {
	        if(i%2!=0)
	        continue;
	        System.out.println(i);
	    }
	}
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now