Converted Lab4-1A cpp to c program style
Finished Lab4-1B