Skip to content

Instantly share code, notes, and snippets.

@steffanydev
Created April 2, 2020 01:23
Show Gist options
  • Select an option

  • Save steffanydev/23022175b21ec43ca86ea0dd64fcb1d4 to your computer and use it in GitHub Desktop.

Select an option

Save steffanydev/23022175b21ec43ca86ea0dd64fcb1d4 to your computer and use it in GitHub Desktop.
Nessa atividade, seu desafio é gerar a tabuada de um número informado pelo usuário. Por exemplo, se o usuário digitar o número 7, então, seu programa deve gerar a tabuada do 7.
numero = int(input('Digite um número: '))
x = 0
while (x <= 10):
# Multiplicação do número
mult = x * numero
print('{} X {} = {}'.format(x, numero, mult))
# Somando mais 1
x = x + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment