#include<stdio.h>
#include<conio.h>
#include<math.h>
void main()
{
int n;
float f;
clrscr();
printf(" enter angle in degree \n");
scanf("%d",&n);
f=n*22.0/7.0/180; /* converting angle to radians */
printf("\n angle =%5d\n sin(%d) =%f\n cos(%d) = %f\n tan(%d) =%f",
n,n,sin(f),n,cos(f),n,tan (f));
getch();
{
Output:
enter angle in degree
30
angle = 30
sin(30) = 0.500183
cos(30) = 0.865920
tan(30) = 0.577631