order = input("Input the order of a Latin Square: ")
top_left = input("Input the top-left number: ")
int_order = int(order)
int_top_left = int(top_left)
for order in range(int_order):
for top_left in range(int_order):
print(int_top_left, end=" ")
print()
我正在尝试输入一个订单,然后输入一个左上角的金额,并让它从那里创建一个拉丁方块。问题是,我不知道如何让它在行和列中计数。该程序仅将左上角的数字排列在大小顺序 x 顺序的方形网格中。