My complier is not working

#include<stdio.h>
#include<conio.h>
int main ()
{
int x,y;
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");
else
printf(“lies anywhere on coordinate system\n”);
return 0;
}

Would you mind elaborating on what exactly your problem is?

1 Like

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.

1 Like

Origin should be checked before axis

nooo !!!