def multi_table(a,b):
if a > b:
small = b
large = a
else:
small = a
large = b
print("{:<6 br="" end="" format=""> for head in range(small,large+1,1):
print("{:<6 br="" end="" format="" head=""> print("")
for row in range(small,large+1,1):
print("{:<6 br="" end="" format="" row=""> for col in range(small,large+1,1):
print("{:<6 br="" col="" end="" format="" row=""> print("")
multi_table(11,17)
print("------------------")
multi_table(17,11)6>6>6>6>
Wednesday, November 2, 2016
Python Multiplication Table: Provided by Teacher
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment