Advertisement
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. променлива за радиани - ok
- //2. променлива за градуси = радиани * 180 / π - ok
- //3. отпечатваме градуси - Math.Round() - ok
- 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
Advertisement