Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Samoeelova.cpp: определяет точку входа для консольного приложения.
- //
- #include "stdafx.h"
- #include "iostream"
- #include "cstdio"
- using namespace std;
- int _tmain(int argc, _TCHAR* argv[])
- {
- int x,y,r;
- cout << "Print X = >"; cin >> x;
- cout << "Print Y = >"; cin >> y;
- cout << "Print R = >"; cin >> r;
- if ((x>0) && (x*x + y*y <= r*r))
- cout << "Gets";
- else if (x == 0 || y == 0)
- cout << "On edge";
- else if (x*x + y*y == r*r)
- cout
- //if (((X+R)*(X+R)+(Y+R)*(Y+R)<=(R*R)) || (((X-R) * (X-R) + Y*Y <= (R*R) ) && (Y>=0)))
- // cout << "Попадает";
- //else cout << "Не попадает";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement