sample6.c