# Program to Convert Radian to Degree in C

CServer Side ProgrammingProgramming

#### C in Depth: The Complete C Programming Guide for Beginners

45 Lectures 4.5 hours

#### Practical C++: Learn C++ Basics Step by Step

Most Popular

50 Lectures 4.5 hours

#### Master C and Embedded C Programming- Learn as you go

Best Seller

66 Lectures 5.5 hours

If input is in radian convert it to degree else input will be in radian convert it to degree. There are formulas that can be used for this conversion.

Radian is the standard unit for measuring angles whereas the complete angle of circle is divided into 360 degree. Also, radian is the smaller value as 1 degree = 180 radians.

Conversion Formulas −

degree = radian * (180/pi)
where, pi=3.14 or 22/7

Example

Input-: radian = 9.0
Output-: degree is : 515.92357

## Algorithm

Start
Step 1 -> define macro as #define pi 3.14
Step 2 -> declare function for converting radian to degree
Step 3 -> In main()
Declare variable as double radian = 9.0
Declare and set double degree = convert(radian)
Print degree
Stop

## Example

#include <stdio.h>
#define pi 3.14
// Function for converting radian to degree
}
int main(){
}
degree is : 515.92357