Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
2A
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' //Lokesh reddy 7002 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { Scanner in=new Scanner(System.in); int a=in.nextInt(); int b=in.nextInt(); int c=in.nextInt(); if (a>=b) { if(a>=c) { System.out.println(a + "is the largest number"); } else { System.out.println(c +"is the largest number"); } } { if(b>=c) { System.out.println(b + "is the largest number"); } else { System.out.println(c + "is the largest number"); } } } }
run
|
edit
|
history
|
help
0
Display Page (Pagination)
get top k frequent elements ( Priority Queue implementation ) Language: Editor: Layout:
alphabet
3a
1.6
Sample ArrayList
Relation
PE #7
Series_4_8
JAVA İLE CELCIUS HESAPLAMA - Fahrenheit to Celsius with Java