def ROB19049(): k, n = int(input("k的值:")), int(input("请输入要累加到的数 :")) a = k * k for i in range(n+1): a += i print("求和结果是:%d"%a) while 1: ROB19049()