Advertisement
Guest User

sanya i laba

a guest
Dec 13th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. public Angle(int s)
  2. {
  3. this.sec = s;
  4. Console.WriteLine("Введите градусы!!!");
  5. this.Gradus = Convert.ToInt32(Console.ReadLine());
  6. Console.WriteLine("Введите минуты!!!");
  7. this.Min = Convert.ToInt32(Console.ReadLine());
  8.  
  9. }
  10.  
  11. public int Gradus
  12. {
  13. get
  14. {
  15. return this.gradus;
  16. }
  17.  
  18. set
  19. {
  20. this.gradus = value;
  21.  
  22. }
  23. }
  24.  
  25. public int Min
  26. {
  27. get
  28. {
  29. return this.min;
  30. }
  31.  
  32. set
  33. {
  34. this.min = value;
  35. }
  36. }
  37.  
  38.  
  39. public double ToRadians()
  40. {
  41. return (this.gradus + this.min * 0.0166667 + this.sec * 0.000277778) * Math.PI / 180 ;
  42. }
  43.  
  44.  
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement