Update Main.java
Browse files
Main.java
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
public class Main {
|
| 2 |
-
public static void main(String[] args)
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
}
|
| 8 |
}
|
|
|
|
| 1 |
public class Main {
|
| 2 |
+
public static void main(String[] args) {
|
| 3 |
+
int a =20;
|
| 4 |
+
if(a%2==0){
|
| 5 |
+
System.out.println("Even number");
|
| 6 |
+
}
|
| 7 |
+
else{
|
| 8 |
+
System.out println("odd number");
|
| 9 |
+
|
| 10 |
+
}
|
| 11 |
}
|
| 12 |
}
|