Solve of URI 1041 (Coordinates of a Point) in C
#include<stdio.h>int main(void){
float x,y;
while(scanf("%f %f",&x,&y)==2){
if(x==0 && y==0)
printf("Origem\n");
else if(y==0)
printf("Eixo X\n");
else if(x==0)
printf("Eixo Y\n");
else if(x>0 && y>0)
printf("Q1\n");
else if(x<0 data-blogger-escaped-y="">0)
printf("Q2\n");
else if(x<0 data-blogger-escaped-br="" data-blogger-escaped-y=""> printf("Q3\n");
else
printf("Q4\n");
}
return 0;
}