Sunday, June 19, 2016

SOLUTION OF URI 1115


// 1115   (Mahmud_Jamil) BRUR
// 
Quadrant





#include<stdio.h>
int main()
{
    int x,y,i;
    for(i=0;i<100;i++){
        scanf("%d%d",&x,&y);
        if(x==0 || y==0)
                break;
        else if(x>0 && y>0)
                printf("primeiro\n");
        else if(x>0 && y<0)
                printf("quarto\n");
        else if(x<0 && y<0)
                printf("terceiro\n");
        else if(x<0 && y>0)
                printf("segundo\n");

}
return 0;
}



0 comments:

Post a Comment