Fixed output statement and ensured C89 compatibility in the for loop
Fixed output statement and ensured C89 compatibility in the for loop
Fixed output statement and ensured C89 compatibility in the for loop