tsvetelinapasheva

TsvetelinaPasheva/FirstStepInCodingExercise/02.RadiansToDegrees

Jan 10th, 2021 (edited)
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _02._RadiansToDegrees
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             double radians = double.Parse(Console.ReadLine());
  10.             double degrees = radians * 180/Math.PI;
  11.  
  12.             Console.WriteLine(Math.Round(degrees));
  13.  
  14.      
  15.         }
  16.     }
  17. }
Add Comment
Please, Sign In to add comment