forked from muruga21/C-problems-Hacktoberfest2023
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
414b037
commit 6365e9b
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//program to print radian value of the given degree// | ||
#include<stdio.h> | ||
#include<math.h> | ||
int main() | ||
{ | ||
float degree,radian; | ||
const float PI=3.14159; | ||
|
||
printf("\n Enter angle in degree:"); | ||
scanf("%f",°ree); | ||
|
||
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)); | ||
printf("sec(%f)= %f\n",degree,1/cos(radian)); | ||
printf("cot(%f)= %f\n",degree,1/tan(radian)); | ||
return 0; | ||
} |