added program11.12.c