#include int main() { printf("Enter a value and find out if the number is even \n"); int num = 0; /// the number scanf("%d", &num); printf("%d is %s \n", num , ((num % 2) ? "odd" : "even")); ///ternary if function return 0; }