corrected c program formatting