Program which reads a number and displays suitable message including whether the given output is number odd or even.

class hello
{ public static void main(String[] asd)throws IOException
BufferedReader in=new BufferedReader(new InputStreamReader(;
int n;
String num;
loop: System.out.println("Enter the number::");
if(n==0 || n==1)
System.out.println("ENter another number, must be greater then or equal to 2::");
continue loop;
System.out.println("Number is EVEN.");
System.out.println("Number is ODD");

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s