write a program in c a given point(x,y) to find out if it lies on the x-axis,y-axis or on origin viz.(0,0),

#include<stdio.h>
#include<conio.h>
   main()
{
   int x,y;
   clrscr();
   printf("\n enter the points x and y');
   scanf("\n %d%d",&x,&y);
   if(x==0&&y==0)
{
   printf("\n points lies on origin");
}
   else
{
   if(x==0)
{
   printf("\n points lies on x-axis");
}
   else
{
   if(y==0)
{
   printf("\n points lies on y-axis");
}
   else
{
   printf("\n x=%d,y=%d",x,y);
}
}
}
   return (0);
}

output:-
x=12,y=0
points lies on y-axis