EG H167          1:30 Sec.          Winter 2001          Daily Assignment D5Advanced


For the D5 Advanced assignment:


1.          Complete the regular D5 assignment which introduces some simple C language input and output.


2.          Complete the following:


a). If you used C++ I/O to do D5 (part A), then do D5 (part A) again using C I/O constructs.


b). What happens if you type in an invalid number at the keyboard?




          c).  How would you modify your program to handle this situation when using the scanf function?  (Hint:  Does scanf "return" anything?)