Multiplication table in python
- zendnwar
- April 16, 2016
- Uncategorized
- 2 Comments
>>> var = 5
>>> for i in range(1,11):
multiply = var * i
print (“Multiplication table”, var,”*”, i,”=”,multiply)
Output–
Multiplication table 5 * 1 = 5
Multiplication table 5 * 2 = 10
Multiplication table 5 * 3 = 15
Multiplication table 5 * 4 = 20
Multiplication table 5 * 5 = 25
Multiplication table 5 * 6 = 30
Multiplication table 5 * 7 = 35
Multiplication table 5 * 8 = 40
Multiplication table 5 * 9 = 45
Multiplication table 5 * 10 = 50