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
Get step-by-step solutions from verified subject matter experts
