Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
exp5
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' //pavithra 7060 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"); } } else { 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
Lincoln1_Surafel
Invert sign and add
Linear Seach
Bubble Sort
Lexisort
bikeride
susun
Binary Tree Max path Sum
Elevator Sim
Linked List creation