This preview shows page 1. Sign up to view the full content.
Unformatted text preview: /* read the base */ double base = readDouble("Enter base: "); /* read the height */ double height = readDouble("Enter height: "); /* calculate and display the area */ double area = (base * height) / 2; println("Area = " + area); } }...
View Full Document
This note was uploaded on 10/27/2009 for the course COMP SCI 1MD3 taught by Professor Various during the Winter '07 term at McMaster University.
- Winter '07