Answer:
int main(){
double degree;
printf("Enter your angle value in degree:");
scanf("%If",°ree);
double radian = degree * (M_PI/180);
printf("sin value is %IF\n",sin(radian));
printf("cos value is %IF\n",cos(radian));
printf("tan value is %IF\n",tan(radian));
return 0;
Explanation:
to solve the problem, first you will need to import the math.h header function.
All of these methods take one double value as argument and returns the result as double.
The argument should be in radian, so is the user input is in degree, we need to convert it to radian by multipling the value PI/180. MI_PI is defined in math.h and it holds the value of PI.
After converting it to radian, we can calculate and print out sin, cos and tan values.
To make the conversion, just use sin(), cos(), and tan()