Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Odd
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 Import Java.util.Scanner; Class OddOreven { Public static void main(string args[]) { Int X; System.out.println(" Enter an integer to check even or odd:"); Scanner in = new scanner(system.in) x=in.nextint(); If(x%2==0); System.out.println("the no is even"); else System.out.println("the no is odd"); } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
MinMaxArray
1 e
Leetcode 297. Serialize and Deserialize Binary Tree
OBF-7 4
1d
massive
S
Palindrome Number in Java
Consecutive Elements String
1a
Please log in to post a comment.