Advertisement
Guest User

pizda

a guest
Sep 30th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #include <conio.h>
  2. #include <cstdio>
  3. #include <iostream>
  4.  
  5. void main () {
  6.  
  7.     float x, y;
  8.     printf("Vvedite storony\n");
  9.     scanf ("%f %f", &x,&y); // vvod perem
  10.    
  11.     system("cls"); // clear screen
  12.  
  13.     if ((x<=1 && x>=0 && y>=0 && y<=1) && ((x*x + y*y)>=1))
  14.         printf ("Nahoditsya v 1 chetv");
  15.     else if ((x>=-1 && x<=0 && y>=0 && y<=1) && ((x*x + y*y))>=1)
  16.         printf ("Nahoditsya v 2 chetv");
  17.     else if ((x>=-1 && x<=0 && y<=0 && y>=-1) && ((x*x + y*y))>=1)
  18.         printf ("Nahoditsya v 3 chetv");
  19.     else if ((x<=1 && x>=0 && y<=0 && y>=-1) && ((x*x + y*y))>=1)
  20.         printf ("Nahoditsya v 4 chetv");
  21.  
  22.     else printf ("Ne nahoditsya v oblasty figuri");
  23.  
  24.     _getch ();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement