1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#include <stdio.h> int main() { int num; printf("Enter an integer\n"); scanf("%d", &num); if (num%2 == 0) printf("It is an Even number\n"); else printf("It is an Odd number\n"); return 0; } |
Sample Input
Enter an integer 45
Sample Output
It is an Odd number