Advertisement
Vinceeeeeee

Exercice 9.1

Nov 25th, 2020
629
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. # Entrez un nombre
  2. number = int(input("Veuillez entre un nombre : "))
  3.  
  4. # Function qui calcul la table de multiplication d'un nombre
  5. def table(n):
  6.     for i in range(1, 11):
  7.         calcul = "{} x {} = {}"
  8.         result = n * i
  9.         render = calcul.format(i, n, result)
  10.         print(render)
  11.  
  12. # Executer la function
  13. table(number)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement