#44 trigonometry radian calculate for beginners in code #codm #coder #c

preview_player
Показать описание
Q: If value of an angle is input through the keyboard, write a program to print all its Trigonometric ratios.

the code is in comments box and telegram channel Following

contact:

instagram id:

telegram link:

C programming telegram channel:

C++ program telegram channel:

facebook id: Sayani Mondal

Gmail contact:

photography instagram account:
@sayani_9836
Рекомендации по теме
Комментарии
Автор

#include <stdio.h>
#include <math.h>

int main()
{
float degree, radian;
float PI = 3.14159;

printf("\t Tuni Technical Hacker \n");
printf("\n");

printf("Enter angle in degree: \n");
scanf("%f", &degree);

radian = degree * (PI / 180.0);

printf("Sin(%f) = %f\n", degree, sin(radian));
printf("Cos(%f) = %f\n", degree, cos(radian));
printf("Tan(%f) = %f\n", degree, tan(radian));
printf("Cosec(%f) = %f\n", degree, 1/sin(radian)); //cos= 1/sin
printf("Sec(%f) = %f\n", degree, 1/cos(radian));//sec= 1/cos
printf("Cot(%f) = %f\n", degree, 1/tan(radian)); //cot= 1/tan

return 0;
}

TuniTechnicalHacker