This preview shows page 1. Sign up to view the full content.
Unformatted text preview: double a = input.nextDouble(); System.out.println("Enter a different number:"); double b = input.nextDouble(); double max =(a>b)?a:b; System.out.println("The largest of the entered numbers is:"+max); S } }...
View Full Document
This document was uploaded on 04/14/2010.
- Spring '10