added program11.5.c