Chapter
Converting Units
From ComputerScienceOne by Dr Chris Bourke
Concepts
- Why is scanf() considered a risky input mechanism?
"In general, scanf() is not a good mechanism for reading input (and in fact can be very dangerous), but it does provide a good starting point."
- How do you outline a C program that converts Fahrenheit to Celsius?
"Let’s write a program that will prompt the user to enter a temperature in degrees Fahrenheit and convert it to degrees Celsius using the formula C = ( F − 32) · 5 9. We begin with the basic program o