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: Specifying a cast

Challenge: Specifying a cast

(upbeat bouncy music) - [Narrator] For this challenge, you need to code a program that prompts the user to input an integer value and store it in an integer variable. Then, use the percentf placeholder in a printf statement to display that variable's value, accurate to one digit after the decimal. Completing this exercise should take you around 15 minutes.

Contents