We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db052ac commit 41ca5cbCopy full SHA for 41ca5cb
evenodd.java
@@ -0,0 +1,13 @@
1
+import java.util.*;
2
+class evenodd{
3
+ public static void main(String args[]){
4
+ Scanner sc= new Scanner(System.in);
5
+ int x;
6
+ System.out.println("Enter an integer: ");
7
+ x=sc.nextInt();
8
+ if(x%2==0)
9
+ System.out.println("Number is even");
10
+ else
11
+ System.out.println("Number is odd");
12
+ }
13
+}
0 commit comments