int number; printf("Input a positive integer : "); scanf("%d", &number); if (number % 2 == 0) printf("Even"); else printf("Odd");