// CIS 211 Lab Example // // Written by Scott D. Anderson, 9/6/96 // // This program essentially calculates the number one, using the // Pythagorean theorem. It's a tiny example to show the effect of using // a library function. #include // For the print statement. #include // For the sine and cosine functions. int main() { float s,c,h ; s = sin(30); c = cos(30); h = s*s + c*c; cout << "The hypotenuse is " << h ; return 0; }