Advertisement
PROFESSOR_AIH

Quadrant

Apr 4th, 2022
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b;
  5.     while(1)
  6.     {
  7.         scanf("%d %d",&a,&b);
  8.         if(a>0 && b>0)
  9.             printf("primeiro\n");
  10.         else if(a>0 && b<0)
  11.             printf("quarto\n");
  12.         else if(a<0 && b>0)
  13.             printf("segundo\n");
  14.         else if(a<0 && b<0)
  15.             printf("terceiro\n");
  16.         else if( a==0 || b==0)
  17.             break;
  18.     }
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement