Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <iso646.h>
- int main()
- {
- float x,y;
- printf("Введите значениия х и у: \n");
- scanf("%f %f", &x, &y);
- if ( x >= 0 and y >= 0 and ( x*x + y*y >= 1) and (fabsf(x) + fabsf(y) <= 2) or ( x <= 0 and y >= 0 and ( x*x + y*y <= 1)) or ( x <= 0 and y <= 0 and (x *x + y*y >= 1) and (fabsf(x)+fabsf(y) <= 2)) or (x >= 0 and y <= 0 and (x*x + y*y <=1)))
- printf("Входит в область \n");
- else
- printf("Не входит в область \n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement