-
Notifications
You must be signed in to change notification settings - Fork 0
/
Que9.java
27 lines (17 loc) · 626 Bytes
/
Que9.java
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
// add apakage
import java.util.Scanner;
public class Que9 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Enter the First number : ");
int num1 = sc.nextInt();
System.out.println("Enter the second number : ");
int num2 = sc.nextInt();
System.out.println("Enter the third number : ");
int num3 = sc.nextInt();
if (num1 > num2 && num1 > num3) System.out.println(num1 + " is greater");
else if (num2 > num3 && num2 > num1) System.out.println(num2 + " is greater");
else System.out.println(num3 + " is greater");
sc.close();
}
}