Properly formatted multiplication table

前端 未结 7 2235
时光取名叫无心
时光取名叫无心 2021-02-15 11:11

How would I make a multiplication table that\'s organized into a neat table? My current code is:

n=int(input(\'Please enter a positive integer between 1 and 15:          


        
7条回答
  •  南旧
    南旧 (楼主)
    2021-02-15 11:22

    For this print as following

     print "%d X %d"%(row, col)
    

    It will print as 2 X 3.

提交回复
热议问题