C program to check odd or even without using bitwise or modulus operator
#include<stdio.h> main() { int n; printf("Enter an integer : "); scanf("%d",&n); if ( (n/2)*2 == n ) printf("Even\n"); else printf("Odd\n"); return 0; }
/*
Output : #1
Enter an integer : 5
Odd
Output : #2
Enter an integer : 4
Even*/