Skip to content

Commit feab252

Browse files
Merge pull request #401 from aman-roy/master
even/odd using bit manipulation
2 parents cd25655 + a7c232e commit feab252

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

BitManipulation/even_odd/evenOdd.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#include <stdio.h>
2+
int main()
3+
{
4+
int n;
5+
printf("Enter any number: ");
6+
scanf("%d", &n);
7+
(n&1)?printf("Number is Odd.\n"):printf("Number is even.\n");
8+
}

0 commit comments

Comments
 (0)