Skip to content

Instantly share code, notes, and snippets.

@danizavtz
Last active September 29, 2023 03:48
Show Gist options
  • Save danizavtz/ef47587145208530f29916270f0e068a to your computer and use it in GitHub Desktop.
Save danizavtz/ef47587145208530f29916270f0e068a to your computer and use it in GitHub Desktop.
num = int(input('Digite o numero para a tabuada: '))
for mult in range(1,11):
print(f'{num} x {mult} = {num*mult}')
cont = input('Deseja ver a tabuada de outro número? (S/N)')
while cont[0].lower() == 's':
num = int(input('Digite o numero para a tabuada: '))
for mult in range(1,11):
print(f'{num} x {mult} = {num*mult}')
cont = input('Deseja ver a tabuada de outro número? (S/N)')
print('Um abraço e até logo! :)')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment