added program11.6.c