7-13 sdut-九九乘法表

注意点:不换行输出

代码

while True:
    try:
        n=int(input())
        ans=1
        for k in range(1,n+1):
            for i in range(1,k):
               print("{}*{}={}".format(i,k,i*k),end=" ")
            print("{}*{}={}".format(k,k,k*k))
    except:
         break   
posted @ 2022-05-25 19:46  kingwzun  阅读(114)  评论(0编辑  收藏  举报