UMBC CMSC 211 Spring 2000

CSEE | 211 | 211 S'00 | lectures | news | help


Project 5 -- Spring 2000

Due: 15 May 2000

Description

Project 5 is to write a program that will calculate the hypotenues of a right triangle.

Prompt the user for sides a and b. Calculate and display the length for side c. You must use floating point values for all three sides and do all calculations in floating point.

Output

The output of your program will look like this:
Enter the length of side a (must be floating point):  3.0
Enter the length of side b (must be floating point):  4.0

The length of side c is:  5.0