Wap to convert degree to radian?

Program:

#include<stdio.h>
int main()
{
int degree;
printf("Enter degrees = ");
scanf("%d",&degree);
printf("\n %d degrees are equivalent to %.2f radians\n\n",degree,(float)(3.14*degree)/180);
return 0;
}

Output:

degree to radian

 

Leave a Reply