added program11.2.c