Wednesday, 30 May 2018

To print the multiplication Table

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

6 comments:

  1. 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

    ReplyDelete
  2. Hiii....Thanks for sharing....Its very helpful to me...
    Best Python Training in Hyderabad

    ReplyDelete
  3. 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.
    For More Info: Python Course in Gurgaon

    ReplyDelete
  4. Thanks for Sharing a Very Informative Post & I read Your Article & I must say that is very helpful post for us.

    Python

    ReplyDelete