Skip to content

Instantly share code, notes, and snippets.

@anhhoangta
anhhoangta / MultiplicationTable.py
Created August 20, 2015 02:52
Nested For Loop
__author__ = 'anhhoangta'
#print the title of program
print("\r")
print("Mutiplication Table".center(38))
#print the first two lines
print("{:4}".format(""),end="")
for num in range(1,10):
print("{:2d}" .format(num), end="\t") #the first line