Skip to content

Commit 966ae8c

Browse files
Merge pull request #151 from Yashdhankecha/patch-1
java
2 parents 30ad640 + fcae010 commit 966ae8c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
public class JavaExample{
2+
3+
public static void main(String[] args) {
4+
5+
int num1 = 10, num2 = 20, num3 = 7;
6+
7+
if( num1 >= num2 && num1 >= num3)
8+
System.out.println(num1+" is the largest Number");
9+
10+
else if (num2 >= num1 && num2 >= num3)
11+
System.out.println(num2+" is the largest Number");
12+
13+
else
14+
System.out.println(num3+" is the largest Number");
15+
}
16+
}

0 commit comments

Comments
 (0)