Hello! In the header of the for statement, shouldn't it be ++i in the third portion? Also, "-" in the output means a negative sign? If so, your logic seems to be incorrect. Because, you need to check if the number is odd - if it is, you should print - i * 5 and not i * 5. Otherwise, the printf call is enough. Also, the condition for continuing the loop should be i <= 10, so that 50 is also included in the output.
Comment