Advertisement
YavorGrancharov

EvenOrOdd

Dec 15th, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. import java.util.Scanner;
  2. public class EvenOrOdd {
  3.     public static void main(String[] args) {
  4.         Scanner console = new Scanner(System.in);
  5.         int i = Integer.parseInt(console.nextLine());
  6.         if (i % 2 == 0) {
  7.             System.out.print("even");
  8.         } else {
  9.             System.out.print("odd");
  10.         }
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement