improved indentatiion prog6.c