This preview shows page 1. Sign up to view the full content.
Unformatted text preview: f inches = feet * INCHES_IN_FOOT; i System.out.println(); S System.out.printf("%.2f feet is %10.2f inches\n\n", feet, inches); S System.out.print("Now, enter a whole number in inches: "); wholeInches = inputNum.nextInt(); w feet = wholeInches / INCHES_IN_FOOT; f System.out.println(); S System.out.printf("%2$d inches is %1$.6f feet\n", feet, wholeInches); } }...
View Full Document
This note was uploaded on 03/05/2011 for the course CSCI 384 taught by Professor Drchan during the Spring '11 term at CA Health Sciences.
- Spring '11