K&R Exercise 3-1