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