Updated answer05.c to fix problem with test16