public class B{
public static void main(String[]args){
Integer a=6;
int b=14;
int c=18;
int x=(a>b)?a:b;
int y=(b>c)?b:c;
if (x>y){
System.out.println("Angka terbesar:"+x);
}
else {
System.out.println("Angka terbesar:"+y);
}
}
}
http://dayaprime.com
Tidak ada komentar:
Posting Komentar