Created
August 21, 2016 21:16
-
-
Save Spotik/73a06b50875937611c3d30195a44680c to your computer and use it in GitHub Desktop.
This file contains 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
'''Escreva um programa que leia um número inteiro N e em seguida apresente na tela a tabuada deste | |
número no formato exibido abaixo. Por exemplo, se N = 4: | |
4 x 1 = 4 | |
4 x 2 = 8 | |
4 x 3 = 12 | |
... | |
4 x 10 = 40 ''' | |
numero = input("Informe o número que quer saber a tabuada:\n") | |
count = 0 | |
while count < 10: | |
count = count + 1 | |
tab = numero * count | |
print "%d x %d = %d" %(numero, count, tab) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment