Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int const R = 2;
- int const a = 3;
- int const b = 3;
- int const c = -3;
- bool module (int x, int y) {
- return (y > abs(x));
- }
- bool circle1 (int x, int y) {
- return ((y > x*x) && (y*y < R*R - x*x));
- }
- bool circle2 (int x, int y) {
- return ((y < -(x*x)) && (y*y < R*R - x*x));
- }
- bool flag (int x, int y) {
- return (y);
- }
- int main() {
- cout << module(2, 3) << endl;
- cout << circle1(1, 0) << endl;
- cout << circle2(0, -1) << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement