Compares the three numbers.,
November 19, 2008 at 4:44 AM
class Largernumber { public static void main(String[] args) { int x=600, y=700, z=6100; if (x>y) { if (x>z) { System.out.println("x is greater"); } else { System.out.println("z is greater"); } } else { if (y>z) { System.out.println("Y is greater"); } else System.out.println("Z is greater"); } } }
View All Comments
| View Tutorial