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

Unlock this course with a free trial

Join today to access over 25,600 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