Skip to content

Commit

Permalink
solution for 28.c
Browse files Browse the repository at this point in the history
  • Loading branch information
lokeshwaraprasad committed Oct 2, 2023
1 parent 414b037 commit 6365e9b
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions sol028.c
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",&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));
printf("sec(%f)= %f\n",degree,1/cos(radian));
printf("cot(%f)= %f\n",degree,1/tan(radian));
return 0;
}

0 comments on commit 6365e9b

Please sign in to comment.