wrong line in original code: for (i = 7; i <= 70; i = i+7); corrected line: for (i = 7; i <= 70; i = i+7) Comment: the semicolon at the end of the line was removed in the corrected version.