Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1.  
  2. #include <stdio.h>
  3.  
  4. int
  5. main ()
  6. {
  7.  
  8.   int a, b;
  9.  
  10.  
  11.  
  12.  
  13.  
  14.   while (1)
  15.     {
  16.  
  17.  
  18.       scanf ("%d%d", &a, &b);
  19.  
  20.       if (a == 0 || b == 0)
  21.     {
  22.       break;
  23.     }
  24.  
  25.       if (a < 0 && b < 0)
  26.     printf ("terceiro\n");
  27.       else if (a > 0 && b > 0)
  28.     printf ("primeiro\n");
  29.       else if (a < 0.00 && b > 0.00)
  30.     printf ("segundo\n");
  31.       else if (a > 0.00 && b < 0.00)
  32.     printf ("quarto\n");
  33.  
  34.     }
  35.  
  36.  
  37.  
  38.  
  39.  
  40.   return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement