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)
- {
- //радиани -> променлива
- //градуси = радиани * 180 / пи -> променлива
- //принтираме градуси с Math.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
Advertisement