Write a program, that reads an angle in radians (rad
) and converts it to degrees (deg
). Look for a proper formula on the Internet. The number π in C# programs is available through Math.PI
. Round the result to the nearest integer using the Math.Round(…)
method.
Input | Output |
---|---|
3.1416 | 180 |
6.2832 | 360 |
0.7854 | 45 |
0.5236 | 30 |
Test your solution here: https://judge.softuni.org/Contests/Practice/Index/504#9.