Saturday, March 19, 2016

Multiplication Table in Python

A simple program that I wrote using Python as my programming language that will generate a multiplication table. The code is very short and easy to understand.

If you have some questions please send me an email at jakerpomperada@gmail.com and jakerpomperada@yahoo.com.

Add me at Facebook my address is jakerpomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.




Sample Program Output

Program Listing

a = 1
print("-" * 60)
print("\t\t\t MULTIPLICATION TABLE ")
print("-" * 60)
while a < 13:
    n = 1
    while n <= 12:
        print("%4d" % (a * n), end=' ')
        n += 1
    print()
    a += 1
print("-" * 60)




No comments:

Post a Comment