|
1 | | -# Faça um programa que leia um número inteiro qualquer e mostre na tela a sua tabuada. |
2 | | -n = int(input('Digite um valor:')) |
| 1 | +# Write a program that reads any integer and displays its multiplication table on the screen. |
| 2 | +number = int(input('Enter a value:')) |
3 | 3 | print('-=' * 20) |
4 | | -print('Analisando o valor informado...') |
| 4 | +print('Analyzing the reported value...') |
5 | 5 | print('-=' * 20) |
6 | | -print('Sua tabuada será:') |
7 | | -print('{} x 1 = {}.'.format(n, n*1)) |
8 | | -print('{} x 2 = {}.'.format(n, n*2)) |
9 | | -print('{} x 3 = {}.'.format(n, n*3)) |
10 | | -print('{} x 4 = {}.'.format(n, n*4)) |
11 | | -print('{} x 5 = {}.'.format(n, n*5)) |
12 | | -print('{} x 6 = {}.'.format(n, n*6)) |
13 | | -print('{} x 7 = {}.'.format(n, n*7)) |
14 | | -print('{} x 8 = {}.'.format(n, n*8)) |
15 | | -print('{} x 9 = {}.'.format(n, n*9)) |
16 | | -print('{} x 10 = {}.'.format(n, n*10)) |
| 6 | +print('Your multiplication table will be:') |
| 7 | +print('{} x 1 = {}.'.format(number, number*1)) |
| 8 | +print('{} x 2 = {}.'.format(number, number*2)) |
| 9 | +print('{} x 3 = {}.'.format(number, number*3)) |
| 10 | +print('{} x 4 = {}.'.format(number, number*4)) |
| 11 | +print('{} x 5 = {}.'.format(number, number*5)) |
| 12 | +print('{} x 6 = {}.'.format(number, number*6)) |
| 13 | +print('{} x 7 = {}.'.format(number, number*7)) |
| 14 | +print('{} x 8 = {}.'.format(number, number*8)) |
| 15 | +print('{} x 9 = {}.'.format(number, number*9)) |
| 16 | +print('{} x 10 = {}.'.format(number, number*10)) |
0 commit comments