Program to find that the entered number is even or odd in C
#include <stdio.h>
#include <conio.h>
main() {
int num; clrscr();
printf("Enter the number : ");
scanf("%d", &num);
if(num%2 != 0) {
printf("\n\nOdd Number");
} else {
printf("\n\nEven Number");
}
getch();
}
Post a Comment