Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <math.h>
- using namespace std;
- bool adlv(double cx, double cy, double r, double x, double y)
- {
- if ((x + cx)*(x + cx) + (y + cy)*(y + cy) < r)
- return true;
- else
- return false;
- }
- int main()
- {
- double cx, cy, x, y, r;
- cin >> cx >> cy >> r >> x >> y;
- cout << adlv(cx, cy, r, x, y);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement