Advertisement
elizeub

Gerador de Tabuadas em Python

Jul 11th, 2021 (edited)
1,097
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. # Este programa Gera Tabuadas
  2. # Criado por Elizeu Barbosa Abreu
  3. # 11/07/2021
  4. # Python 3.7.3
  5.  
  6. print('{:#^25}'.format('TABUADA'))
  7. while True:
  8.     print('{:-^25}'.format(''))
  9.     tab = int(input('Que tabuada deseja? '))
  10.     print('{:-^25}'.format(''))
  11.     print('Tabuada do {:0>2}'.format(tab))
  12.     for n in range(10):
  13.         n+= 1
  14.         result = tab*n
  15.         print('{:0>2} X {:0>2} = {:0>2}'.format(tab, n, result))
  16.        
  17.    
  18.    
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement