modified:   answer05.c