Advertisement
Guest User

Untitled

a guest
Oct 13th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int const R = 2;
  6. int const a = 3;
  7. int const b = 3;
  8. int const c = -3;
  9.  
  10. bool module (int x, int y) {
  11. return (y > abs(x));
  12. }
  13. bool circle1 (int x, int y) {
  14. return ((y > x*x) && (y*y < R*R - x*x));
  15. }
  16. bool circle2 (int x, int y) {
  17. return ((y < -(x*x)) && (y*y < R*R - x*x));
  18. }
  19. bool flag (int x, int y) {
  20. return (y);
  21. }
  22.  
  23. int main() {
  24. cout << module(2, 3) << endl;
  25. cout << circle1(1, 0) << endl;
  26. cout << circle2(0, -1) << endl;
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement