Tabuada
Adaptado por Neilor Tonin, URI

Leia 1 valor inteiro N (2 < N < 1000). A seguir, mostre a tabuada de N:
1 x N = N 2 x N = 2N ... 10 x N = 10N
Entrada
A entrada contém um valor inteiro N (2 < N < 1000).
Saída
Imprima a tabuada de N, conforme o exemplo fornecido.
URI Online Judge | 1078
Multiplication Table
Adapted by Neilor Tonin, URI
Brazil
Timelimit: 1
Read an integer N (2 < N < 1000). Print the multiplication table of N.
1 x N = N 2 x N = 2N ... 10 x N = 10N
1 x N = N 2 x N = 2N ... 10 x N = 10N
Input
The input is an integer N (1 < N < 1000).
Output
Print the multiplication table of N., like the following example.
n = int(input())
for i in range(1, 11):
print('{} x {} = {}'.format(i , n , i * n))
n = int(input())
for i in range(1, 11):
print('{} x {} = {}'.format(i , n , i * n))
Nenhum comentário:
Postar um comentário