Added prog6.c