From the course: Advanced C Programming: Optimize Performance and Efficiency

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Challenge: A ternary-operator decision

Challenge: A ternary-operator decision

(upbeat music) - [Instructor] Here is your challenge. Code a program that uses the ternary operator, direct the user to input an integer greater than zero, and then report whether that number is odd or even. Give yourself about 10 minutes to complete this challenge.

Contents