Posts by Helio Catete • 11 points
1 post
-
1
votes7
answers15010
viewsA: Print "n" natural odd numbers
I did so in Python, which includes the last number if it is odd. num = int(input("Digite um número inteiro: ")) for num in range(1, num+1, 2): print(num)
pythonanswered Helio Catete 11