Question: Write a Fortran program that asks the user for two real number angles in degrees and stores them as variables. Calculate and store the cosines

Write a Fortran program that asks the user for two real number angles in degrees and stores them as variables. Calculate and store the cosines of the numbers (they must be converted to radians to use Fortran's cos function). Print the larger of the two cosinevaluesand the angle (in degrees) that resulted in that value. If they are equal, print a message to the effect that the cosines of the two angles (print them) are equal and print the value.Hint: It will be good practice (and much easier) to first write and understand a program that just takes two user values and prints the larger of them.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!