Skip to content

Instantly share code, notes, and snippets.

@steffanydev
Created April 23, 2020 00:26
Show Gist options
  • Select an option

  • Save steffanydev/8a6bebc1320a01094e8fc4cff7b7be03 to your computer and use it in GitHub Desktop.

Select an option

Save steffanydev/8a6bebc1320a01094e8fc4cff7b7be03 to your computer and use it in GitHub Desktop.
Crie um programa que mostre na tela todos os números pares que estão no intervalo entre 1 e 50 utilizando a estrutura de repetição FOR
for par in range(1, 51):
if par % 2 == 0:
print(par)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment