Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 343 Bytes

File metadata and controls

25 lines (18 loc) · 343 Bytes

Java-Programs

import java.util.Scanner;

public class EvenOROddCheck { public static void main(String[] args) { Scanner sc=new Scanner(System.in);

System.out.println("enter the number");

int num=sc.nextInt();

if(num%2==0)
{
	System.out.println("number is even");
	
}
else
{
	System.out.println("number is odd");
}
}

}