Let's return to the problem that introduced this lesson and consider how to use a while loop to enforce input constraints. Take a look at ``examples/kelvin.c''. You can also view it directly.
Study the program, run it a few times, and then try to answer the following questions.
Click here for the answers
Before we move along, try to write a function of no arguments that prompts the user for and returns a positive temperature in degrees Kelvin. In other words, package up the program that we just wrote as a function.
Click here for the answer