I\'m teaching myself C with K&R and am stumped by one of the examples in the book. I compile the code exactly as it is written in the example but it does not do what th
Apart from the return value of main it looks OK.
Do you do the CtrlD (Unix) or CtrlZ (Windows) at the end of input if you are entering values from keyboard?