Add ex10.c from A Book on C Chapter 5