Articles

Wap to convert degree to radian?

Share

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:

 

This post was last modified on June 18, 2020

Sandeep Verma

Published by
Sandeep Verma
Tags: C code degree radian