modified:   answer07.c