Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. // Samoeelova.cpp: определяет точку входа для консольного приложения.
  2. //
  3.  
  4. #include "stdafx.h"
  5. #include "iostream"
  6. #include "cstdio"
  7.  
  8.  
  9. using namespace std;
  10.  
  11. int _tmain(int argc, _TCHAR* argv[])
  12. {
  13. int x,y,r;
  14.  
  15. cout << "Print X = >"; cin >> x;
  16. cout << "Print Y = >"; cin >> y;
  17. cout << "Print R = >"; cin >> r;
  18.  
  19. if ((x>0) && (x*x + y*y <= r*r))
  20. cout << "Gets";
  21. else if (x == 0 || y == 0)
  22. cout << "On edge";
  23. else if (x*x + y*y == r*r)
  24. cout
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35. //if (((X+R)*(X+R)+(Y+R)*(Y+R)<=(R*R)) || (((X-R) * (X-R) + Y*Y <= (R*R) ) && (Y>=0)))
  36. // cout << "Попадает";
  37. //else cout << "Не попадает";
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47. return 0;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement