Dec-31-2017, 07:52 AM
Your output is the same as Larz60+'s one, you just run the infinite
Also, the logic of your first program is incorrect. When c is equal to 1, the
while
loop a little bit longer.Also, the logic of your first program is incorrect. When c is equal to 1, the
elif c % 2 == 1:
is true and therefore the statement elif c == 1:
is never executed.