nvnnaidenov

RadiansToDegrees - Chapter 2.0

Feb 9th, 2022
868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.27 KB | None | 0 0
  1. //Task 010, Chapter 2.0
  2. using System;
  3.  
  4. public class RadiansToDegrees
  5. {
  6.     static void Main()
  7.     {
  8.         double rad = double.Parse(Console.ReadLine());
  9.  
  10.         double deg = rad * 180 / Math.PI;
  11.  
  12.         Console.WriteLine((int)(Math.Round(deg, 2)));
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment