Articles
Wap to convert degree to radian?
Program:
#include<stdio.h>
int main()
{
int degree;
printf("Enter degrees = ");
scanf("%d",°ree);
printf("\n %d degrees are equivalent to %.2f radians\n\n",degree,(float)(3.14*degree)/180);
return 0;
}
Output:
This post was last modified on June 18, 2020
Tags: C code degree radian