Created
January 5, 2018 11:52
-
-
Save rizwansoaib/c559eea7ad0e4d2ce1b68f5b1fa269a8 to your computer and use it in GitHub Desktop.
To find all trignometric ratio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
void main() | |
{ | |
double x; | |
scanf("%lf",&x); | |
double b=x*3.14/180; | |
printf("sin %.lf°=%.lf",x,sin(b)); | |
printf("\ncos %.lf°=%.lf",x,cos(b)); | |
printf("\ntan %.lf°=%.lf",x,tan(b)); | |
printf("\ncosec %.lf°=%.lf",x,1/sin(b)); | |
printf("\nsec %.lf°=%.lf",x,1/cos(b)); | |
printf("\ncot %.lf°=%.lf",x,cos(b)/sin(b)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To find all trignometric ratio