This preview shows page 1. Sign up to view the full content.
Unformatted text preview: cout << "Enter the value for side a: " ; cin >> a ; cout << "Enter the value for side b: " ; cin >> b ; // Compute area and hypotenuse. area = 0.5 * a * b ; hypotenuse = sqrt( a * a + b * b ) ; // Display results. cout << "Area = " << area << endl ; cout << "Hypotenuse = " << hypotenuse << endl ; return 0 ; }...
View Full Document
This note was uploaded on 10/28/2010 for the course CSCI 1113 taught by Professor Staff during the Spring '08 term at Minnesota.
- Spring '08