# Program to Convert Radian to Degree

Before moving to the actual solution, let’s try to find out what is a degree, a radian, and their relations.

**Radian :** The radian is the standard unit of angular measure, used in many areas of mathematics. The length of an arc of a unit circle is numerically equal to the measurement in radians of the angle that it subtends. One radian is just under 57.3 degrees.

**Degree :** A degree (in full, a degree of arc, arc degree, or arcdegree), usually denoted by ° (the degree symbol), is a measurement of a plane angle, defined so that a full rotation is 360 degrees.

The relation 2pi*rad = 360° can be derived using the formula for arc length.

An arc of a circle with the same length as the radius of that circle subtends an angle of 1 radian. The circumference subtends an angle of 2pi radians.

Therefore the formula is:

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

**Examples:**

Input : radian = 20 Output : degree = 1145.4545454545455 Explanation: degree = 20 * (180/pi) Input : radian = 5 Output : degree = 286.3636363636364 Explanation : degree = 20 * (180/pi)

**Note:** In this programs, we have taken the value of pi as 3.14159 to get standard result in all three languages.

## C/C++

`// C code to convert radian to degree ` ` ` `#include <stdio.h> ` ` ` `// Function for convertion ` `double` `Convert(` `double` `radian){ ` ` ` `double` `pi = 3.14159; ` ` ` `return` `(radian * (180/pi)); ` `} ` ` ` `// Driver Code ` `int` `main(){ ` ` ` `double` `radian = 5.0; ` ` ` `double` `degree = Convert(radian); ` ` ` `printf` `(` `"%.5lf"` `, degree); ` ` ` `return` `0; ` `} ` |

*chevron_right*

*filter_none*

## Java

`// Java code to convert radian to degree ` ` ` `import` `java.io.*; ` `class` `GFG { ` ` ` `// Function for convertion ` ` ` `static` `double` `Convert(` `double` `radian){ ` ` ` `double` `pi = ` `3.14159` `; ` ` ` `return` `(radian * (` `180` `/pi)); ` ` ` `} ` ` ` `// Driver Code ` ` ` `public` `static` `void` `main (String[] args) { ` ` ` `double` `radian = ` `5.0` `; ` ` ` `double` `degree = Convert(radian); ` ` ` `System.out.println(` `"degree = "` `+ degree); ` ` ` `} ` `} ` |

*chevron_right*

*filter_none*

## Python3

`# Python code to convert radian to degree ` ` ` `# Function for convertion ` `def` `Convert(radian): ` ` ` `pi ` `=` `3.14159` ` ` `# Simply used the formula ` ` ` `degree ` `=` `radian ` `*` `(` `180` `/` `pi) ` ` ` `return` `degree ` ` ` `# Driver Code ` `radian ` `=` `5` `print` `(` `"degree ="` `,(Convert(radian))) ` |

*chevron_right*

*filter_none*

Output:

286.47914

## C#

`// C# code to convert radian to degree. ` `using` `System; ` ` ` `class` `GFG { ` ` ` ` ` `// Function for convertion ` ` ` `static` `double` `Convert(` `double` `radian){ ` ` ` `double` `pi = 3.14159; ` ` ` `return` `(radian * (180 / pi)); ` ` ` `} ` ` ` ` ` `// Driver Code ` ` ` `public` `static` `void` `Main () { ` ` ` `double` `radian = 5.0; ` ` ` `double` `degree = Convert(radian); ` ` ` `Console.Write(` `"degree = "` `+ degree); ` ` ` `} ` `} ` ` ` `// This code is contributed by Nitin Mittal. ` |

*chevron_right*

*filter_none*

## PHP

`<?php ` `// PHP code to convert radian to degree ` ` ` `// Function for convertion ` `function` `Convert(` `$radian` `) ` `{ ` ` ` `$pi` `= 3.14159; ` ` ` `return` `(` `$radian` `* (180 / ` `$pi` `)); ` `} ` ` ` `// Driver Code ` `$radian` `= 5.0; ` `$degree` `= Convert(` `$radian` `); ` `echo` `( ` `$degree` `); ` ` ` `// This code is contributed by nitin mittal ` `?> ` |

*chevron_right*

*filter_none*

Output :

286.47914

**Reference:**

https://en.wikipedia.org/wiki/Radian

https://en.wikipedia.org/wiki/Degree_(angle)

Don’t stop now and take your learning to the next level. Learn all the important concepts of Data Structures and Algorithms with the help of the most trusted course: **DSA Self Paced**. Become industry ready at a student-friendly price.

## Recommended Posts:

- Program to convert Degree to Radian
- Program to convert temperature from degree Celsius to Kelvin
- Python program to convert POS to SOP
- Program to convert a given number to words
- Program to Convert Set to List in Java
- Program to Convert Octal to Hexadecimal
- Program to convert Array to Set in Java
- Program to convert a Map to a Stream in Java
- Program to convert Number in characters
- Program to convert a given number to words | Set 2
- Program to convert Array to List in Java
- Java Program to convert integer to boolean
- Program to convert speed in km/hr to m/sec and vice versa
- Program to Convert HashMap to TreeMap in Java
- Program to Convert Set of Integer to Set of String in Java
- Java Program to convert boolean to integer
- Python Program to convert Kilometers to Miles
- Program to Convert List to Stream in Java
- Program to Convert Stream to an Array in Java
- Program to convert set of String to set of Integer in Java

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.