## Friday, August 23, 2019

Solution Exercice 12 : Python Multiplication table

#### Exercise 12

1) - Write a program in Python that asks the user to enter an integer n and display the multiplication table of that number.
2) - Improve the program so that it displays multiplication tables of all numbers between 1 and 9

#### Solution

1) -
``````# Ask to type a value of the integer n
n = int(input("Type a value of the integer n "))
print("The multiplication table of : ", n," is :")
for i in range(1,10):
print(i , " x ", n, " = ",i*n)
``````
2) -
``````for n in range(1,10):
#insert separator
print("--------------------------------------")
print("The multiplication table of : ", n," is :")
for i in range(1,10):
print(i , " x ", n, " = ",i*n)
``````

Younes Derfoufi

## Python Exercises With Solutions

1. Python Arithmetic Exercises
2. Equations & System Of Equations
3. Polynomials and Functions
4. Python Arithmetic Exercises
5. Numpy, Matplolib, Sympy , Scipy - Exercises
6. Python Arithmetic Exercises

Younes Derfoufi