for x in range(1, 10): print(f"{x}の段:", end="") for y in range(1, 10): print(f"{x*y:2d} ", end="") print() # プログラム6-20(九九の表)