Python - 完全數


n = int(input('please fill in an integer number :'))
c = 0

for i in range(1,n+1):
    if n % i == 0:
        c = c + i    
    print(c-n)

雅思寫作11/10

  example resulted from chatgpt The line graph illustrates the monthly sales of four bakery products—baked bread, croissants, cupcakes, and ...