This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
__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 |