completed Program6.c - compiles and runs successfully on MSVS, didn't have linux box while working on H2\P6