int is_odd(int n) { return n % 2; } int main(void) { int n; scanf("%d", &n); is_odd(n) ? printf("%d is odd.\n", n) : printf("%d is even.\n", n); return 0; }