repo.or.cz
/
letusc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
move to repo.or.cz
[letusc.git]
/
ch2
/
exercises1
/
ex12.c
blob
5804f850ed91aa2b861b29ac8dfb085a631ebc8e
1
#include<stdio.h>
2
3
int
main
()
4
{
5
int
x
,
y
;
6
printf
(
"Enter x and y:"
);
7
scanf
(
"%d %d"
,&
x
,&
y
);
8
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
"
);
15
16
return
0
;
17
}