Created
April 2, 2020 01:23
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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