22:15

ODD and EVEN

Posted by Mitesh Patel |


class Odd_Even_Finder {

    public static void main(String args[]) {

        int x = Integer.valueOf(args[0]);

        if (x % 2 == 0) {

            System.out.println("EVEN");

        } else {
            System.out.println("ODD");
        }

    }

}

0 comments:

Post a Comment

Subscribe