ODD-EVEN PROGRAM IN JAVA WITH BLUEJ || BLUEJ HUB
*************************************
import java.util.Scanner;
class Odd_Even
{
public static void main (String args[])
{
Scanner sc=new Scanner (System.in);
int num;
System.out.println(“ ENTER A NUMBER ”);
num=sc.nextInt();
if(num%2 == 0)
{
System. out.println(“ NUMBER INPUTTED IS EVEN”);
}
else
{
System.out.println(“ NUMBER INPUTTED IS ODD ”);
}
}
}
*************************************
By- BLUEJ HUB
Visit YouTube channel -
https://m.youtube.com/channel/UCW7yV7KbT-1dlQmhG2FEjuA
#BluejHub
Check out on YouTube-- https://m.youtube.com/watch?v=wZhRHECL5NA
1 Comments
👍👍
ReplyDelete