Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <conio.h>
- #include <cstdio>
- #include <iostream>
- void main () {
- float x, y;
- printf("Vvedite storony\n");
- scanf ("%f %f", &x,&y); // vvod perem
- system("cls"); // clear screen
- if ((x<=1 && x>=0 && y>=0 && y<=1) && ((x*x + y*y)>=1))
- printf ("Nahoditsya v 1 chetv");
- else if ((x>=-1 && x<=0 && y>=0 && y<=1) && ((x*x + y*y))>=1)
- printf ("Nahoditsya v 2 chetv");
- else if ((x>=-1 && x<=0 && y<=0 && y>=-1) && ((x*x + y*y))>=1)
- printf ("Nahoditsya v 3 chetv");
- else if ((x<=1 && x>=0 && y<=0 && y>=-1) && ((x*x + y*y))>=1)
- printf ("Nahoditsya v 4 chetv");
- else printf ("Ne nahoditsya v oblasty figuri");
- _getch ();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement