last if-else seems not required,
July 26, 2009 at 3:46 PM
Hi there in this program listed above i am sure the last if condition is not requiredwhen already checked greatness of "a" and "b" if they are not greatest the remaining intity "c" will automatically be the greatest. in place of this form of this loop else if (c>a && c>b) { System.out.println("c is greatest"); } will be replaced by this form of loop else { System.out.println("c is greatest"); }