Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int
- main ()
- {
- int a, b;
- while (1)
- {
- scanf ("%d%d", &a, &b);
- if (a == 0 || b == 0)
- {
- break;
- }
- if (a < 0 && b < 0)
- printf ("terceiro\n");
- else if (a > 0 && b > 0)
- printf ("primeiro\n");
- else if (a < 0.00 && b > 0.00)
- printf ("segundo\n");
- else if (a > 0.00 && b < 0.00)
- printf ("quarto\n");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement