``` 輸入2,5,列印: 1 2 3 4 5 6 7 8 9 10 ``` #行數 m = int(input(`請輸入一個整數`)) n = int(input(`請在輸入一個整數`)) for i in range(m): for j in range(n): num = i * n + j + 1 print(num,end=``) print()
``` 輸入2,5,列印: 1 2 3 4 5 6 7 8 9 10 ``` #行數 m = int(input(`請輸入一個整數`)) n = int(input(`請在輸入一個整數`)) for i in range(m): for j in range(n): num = i * n + j + 1 print(num,end=``) print()