Advertisement
Mr_D3a1h

Untitled

Oct 13th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1. #include <stdio.h>
  2.  #include <math.h>
  3. #include <iso646.h>
  4.  int main()
  5.  {
  6.     float x,y;
  7.     printf("Введите значениия х и у: \n");
  8.     scanf("%f %f", &x, &y);
  9.      
  10.      
  11.     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)))
  12.         printf("Входит в область \n");
  13.     else
  14.         printf("Не входит в область \n");
  15.      return 0;
  16.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement