# this program is designed to help the user get the maultiplication series tables: # 1. first take user inputs: SeriesStart= int(input("Series Start value: ")) seriesEnd = int(input("Series End value: ")) # The first multiplication table: tableStart= int(input("Table Start Value: ")) # The last multiplication table: tableEnd= int(input("Table End Value: ")) if seriesEnd<=SeriesStart: print("Invalid End Value") if tableEnd<= tableStart: print("Invalid ENd Value") else: for i in range(SeriesStart,seriesEnd+1): # print a heading(i) print("multiplication table", i) for j in range (tableStart, tableEnd +1): print(j, 'X',i, '=', i*j)
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter