Code is copied!
Program to check whether the inputted number is even or odd JAVA
Write a Program to check whether the inputted number is even or odd.

import java.util.*; class evenodd { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); if(n%2==0) System.out.println("It is a even number"); else System.out.println("It is a odd number"); } }