move to repo.or.cz
[letusc.git] / ch2 / exercises1 / ex12.c
blob5804f850ed91aa2b861b29ac8dfb085a631ebc8e
1 #include<stdio.h>
3 int main()
5 int x,y;
6 printf("Enter x and y:");
7 scanf("%d %d",&x,&y);
9 if(y==0)
10 printf("It lies on X Axis\n");
11 if(x==0)
12 printf("It lies on Y Axis\n");
13 if(x==0 && y==0)
14 printf("It is in origin\n");
16 return 0;