Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace FirstStepsInCodding
- {
- class Program
- {
- static void Main(string[] args)
- {
- //чете ъгъл -rad => deg. формулата:
- //градус =радиан * 180 / π .
- //π - Math.PI.
- //Закръглете -Math.Round().
- double rad = double.Parse(Console.ReadLine());
- double deg = rad * 180 / Math.PI;
- Console.WriteLine(Math.Round(deg));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment