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)
- printf("primeiro\n");
- else if(a>0 && b<0)
- printf("quarto\n");
- else if(a<0 && b>0)
- printf("segundo\n");
- else if(a<0 && b<0)
- printf("terceiro\n");
- else if( a==0 || b==0)
- break;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement