Example:
num=int(input("enter number: "))
print("the multiplication table of %d"%num)
for i in range(1,11):
print(num,'*',i,'=',num*i)
output:
enter number: 5
the multiplication table of 5
5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50
num=int(input("enter number: "))
print("the multiplication table of %d"%num)
for i in range(1,11):
print(num,'*',i,'=',num*i)
output:
enter number: 5
the multiplication table of 5
5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50
Thanks for sharing mulitiplication table. we are clearly understand this concept.It is very useful for students and Python Developers. we do have dedicated and experience developer.Hire Python Developer
ReplyDeleteits nice
ReplyDeletePython Training in Gurgaon
Hiii....Thanks for sharing....Its very helpful to me...
ReplyDeleteBest Python Training in Hyderabad
Good Explanation,Nice Post
ReplyDeletePython Training Institutes Pune
Python is relatively easier to code with the use of elements from human language and useful for developing both simple and high-end applications. This great advantage makes Python very well known in the IT industry. Presently, experts see a rise in its usage in web development. Being the best Python training institute in Gurgaon, APTRON Gurgaon understand the latest trends and provide best Python training in Gurgaon.
ReplyDeleteFor More Info: Python Course in Gurgaon
Thanks for Sharing a Very Informative Post & I read Your Article & I must say that is very helpful post for us.
ReplyDeletePython