Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class MyClass {
- public static void main(String args[]) {
- Scanner input = new Scanner(System.in);
- int inputN = input.nextInt();
- if(inputN % 2 == 0){
- System.out.println("The number "+inputN+" is even!");
- }else{
- System.out.println("The number "+inputN+" is odd!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement