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