Update program6.c