// Illustrates the use of const variable declarations, and also the tan() // function (as found in math.h). What happens if you modify the program // to include a line to change the value of PI? Try it. #include #include void main() { const double PI = 3.14159265; double angle_deg, angle_rad, side_1, side_2; cout << "Enter the angle in degrees: "; cin >> angle_deg; cout << "Enter the length of the adjacent side: "; cin >> side_1; angle_rad = angle_deg * PI/180; side_2 = side_1 * tan(angle_rad); cout << "The opposite side has length " << side_2 << ".\n"; }