#include
#include
#include
int main(void) {
char *oddeven[] = { "even", "odd" };
char target[16];
char *x;
int number;
printf("Enter a number: ");
number = (int)strtol((fgets(target, sizeof(target), stdin)), &x, 10);
printf("number %d is an %s number\n", number, oddeven[number % 2]);
return 0;
}