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 - C Tutorial
From the course: Advanced C Programming: Optimize Performance and Efficiency
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.