i am trying to do the following:
program that reads two floating-point values representing angles and displays a message stating which angle has the greater tangent value. Note that the trigonometric functions in the math library expect angles in radians, not degrees. 360 degrees = 2 x pi radians, so 45 degrees would be about 0.785 radians.
I have come up with code that takes in 2 numbers and displays the highest values. What I am stuck on is the calculations part. I am searching online and reading the books. Any help in this area will be great. Here is the code I have so far:
cout<< "Enter the first angle: ";
cout<< "Enter the second angle: ";
if ( x > y )
cout << " The highest angle is "<< x <<endl;
cout<< "The highest angle is "<< y <<endl;