move to repo.or.cz
[letusc.git] / ch2 / exercises1 / exa2.c
blobf6b7cb4368ee6a6488cc4d8e8b47d1b11e88031d
1 /*Odd or even*/
3 #include<stdio.h>
5 int main()
7 int i;
8 printf("Enter the Number: ");
9 scanf("%d",&i);
11 if(!(i%2))
12 printf("%d is even\n",i);
13 else
14 printf("%d is odd\n",i);
15 return 0;