int main ()
printf(“enter the coordinates\n”);
scanf("%d %d" ,&x,&y);
if ( x==0)
printf (" lies anywhere on y axis\n");
else if (y==0)
printf(" lies anywhere on x axis\n");
else if ( x==0 && y==0)
printf(" lies on origin");
printf(“lies anywhere on coordinate system\n”);
Would you mind elaborating on what exactly your problem is?
conio.h supported in Online Judge?
Also, I guess the 3rd condition, to find if the point is nothing but origin, should be checked first and then the rest.
Origin should be checked before axis