15 lines
251 B
Plaintext
15 lines
251 B
Plaintext
|
|
inputNum=int(input("자연수 입력 : "))
|
||
|
|
result=[]
|
||
|
|
|
||
|
|
for a in range(1, inputNum + 1):
|
||
|
|
result=[]
|
||
|
|
u=0
|
||
|
|
t=a
|
||
|
|
|
||
|
|
while u<=inputNum:
|
||
|
|
u=u+t
|
||
|
|
result.append(t)
|
||
|
|
t+=1
|
||
|
|
if u==inputNum:
|
||
|
|
print(result)
|
||
|
|
|