Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class EvenOrOdd {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- int i = Integer.parseInt(console.nextLine());
- if (i % 2 == 0) {
- System.out.print("even");
- } else {
- System.out.print("odd");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement