C program to find Odd or Even using bitwise operator
1 |
#include <stdio.h>int main(){int n;printf("Input an integer\n");scanf("%d", &n);if (n & 1 == 1)printf("Odd\n");elseprintf("Even\n");return 0;}</stdio.h> |
C program to find Odd or Even using bitwise operator
1 |
#include <stdio.h>int main(){int n;printf("Input an integer\n");scanf("%d", &n);if (n & 1 == 1)printf("Odd\n");elseprintf("Even\n");return 0;}</stdio.h> |