Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
Firstproject
Satish Shankar Nikam
find Kth largest element in array
Java Q4
Black Jack by Craig
om using stars
test1
Day 1
How many Squares in Rectangle
Recursive list fields
Please log in to post a comment.