can we write a program in this way,
April 25, 2007 at 4:40 PM
class greaternumber { public static void main(String[] args) { int x=100,y=200,z=12; if (x>y && y>z) { System.out.println("x is the Greater number"); } else if(z>x && z>y) { System.out.println ("Z is the larget number"); } else { System.out.println("Y is the larger number"); } } }
View All Comments
| View Tutorial