Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _06.RadiansToDegrees
- {
- class Program
- {
- static void Main(string[] args)
- {
- //1. прочитаме радиани
- //2. преобразуваме в градуси
- //1 гр = пи * радиани / 180
- //3. печатаме градуси
- double radians = double.Parse(Console.ReadLine());
- double degrees = (180 / Math.PI) * radians;
- Console.WriteLine(Math.Round(degrees));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment