sexta-feira, 14 de setembro de 2018

URI PROBLEMA 1078 - Tabuada SOLUÇÃO EM PYTHON

URI Online Judge | 1078
Tabuada


Adaptado por Neilor Tonin, URI BrasilTimelimit: 1


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  

Input

The input is an integer (1 < < 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))

Nenhum comentário:

Postar um comentário

URI PROBLEMA 1133 - Resto da Divisão SOLUÇÃO EM C

URI Online Judge | 1133 Resto da Divisão Adaptado por Neilor Tonin, URI   Brasil Timelimit: 1 Escreva um programa que leia 2 valo...