-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlargest.java
More file actions
25 lines (22 loc) · 699 Bytes
/
largest.java
File metadata and controls
25 lines (22 loc) · 699 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
public class largest {
public static void main(String args[]){
int var1 = Integer.parseInt(args[0]);
int var2 = Integer.parseInt(args[1]);
int var3 = Integer.parseInt(args[2]);
if(var1>var2){
if(var1>var3){
System.out.println("Larget Nuber is " + var1);
}
else{
System.out.println("Larget Nuber is " + var3);
}
}else{
if(var2>var3){
System.out.println("Larget Nuber is " + var2);
}
else{
System.out.println("Larget Nuber is " + var3);
}
}
}
}