1. Engineering
  2. Computer Science
  3. write a main function and a function to compute and...

Question: write a main function and a function to compute and...

Question details
Write a Main function and a Function to compute and print the sine and cosine values of the array A elements which are angles in degrees.
Within the MAIN function:
Declare a float array A to hold 50 angles in degrees.
Initialize array A elements from the standard input.
Pass the array A to the function as an argument.
Within the function:
Read array A elements and compute and print the sine and cosine values of the array A elements which are greater than 0 and less than 120 degrees? ( Pi=3.14)
Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution