Example (continued)
Program uses the scanf scan formatted input functions to read an input number, and the printf print formatted output function to display the number which was entered.
Whenever scanf is executed, it produces a number which can be assigned to a variable
- result is -1 (scanf received EOF)
- result is 0 (non floating point entered)
- result is 1 (float number entered)