Problem: console converter - from radians to degrees

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 whole number using the Math.Round(…) method.

Sample Input and Output

Input Output
3.1416 180
6.2832 360
0.7854 45
0.5236 30

Testing in the Judge System

Test your solution here: https://judge.softuni.bg/Contests/Practice/Index/504#9.

results matching ""

    No results matching ""