/* This is a program that reads three numbers from the user and prints out the largest. Laura Toma oct 3rd 2005 */ public class MaxThree { public static void main (String args[]) { // your program goes here System.out.println("Hello world!!!"); ReadStream r = new ReadStream(); int a, b, c; System.out.println("Enter first number: "); a = r.readInt(); r.readLine(); System.out.println("Enter second number: "); b = r.readInt(); r.readLine(); System.out.println("Enter third number: "); c = r.readInt(); r.readLine(); if ((a>b) && (a > c)) System.out.println("Max is " +a); if ((b>a) && (b > c)) System.out.println("Max is " +b); if ((c>b) && (c > a)) System.out.println("Max is " +c); System.out.println("Thank you. Bye"); } // end of main } // end of class