Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Angle(int s)
- {
- this.sec = s;
- Console.WriteLine("Введите градусы!!!");
- this.Gradus = Convert.ToInt32(Console.ReadLine());
- Console.WriteLine("Введите минуты!!!");
- this.Min = Convert.ToInt32(Console.ReadLine());
- }
- public int Gradus
- {
- get
- {
- return this.gradus;
- }
- set
- {
- this.gradus = value;
- }
- }
- public int Min
- {
- get
- {
- return this.min;
- }
- set
- {
- this.min = value;
- }
- }
- public double ToRadians()
- {
- return (this.gradus + this.min * 0.0166667 + this.sec * 0.000277778) * Math.PI / 180 ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement