-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThirdClass.java
More file actions
34 lines (27 loc) · 751 Bytes
/
ThirdClass.java
File metadata and controls
34 lines (27 loc) · 751 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import java.util.*;
public class ThirdClass{
public static void main(String [] args) {
Scanner sc = new Scanner (System.in);
int a = sc.nextInt();
int b = sc.nextInt();
if(a==b){
System.out.println("equal");
}else{
if(a>b){
System.out.println("a is greater");
}else{
System.out.println("a is lesser");
}
}
// if(age>18){
// System.out.println("Adult");
// } else{
// System.out.println("not an Adult");
// }
// if(age%2==0){
// System.out.println("Even");
// }else{
// System.out.println("odd");
// }
}
}