#Write a program that reads a positive integer. The program finds and #prints the sum of all divisors of the input number. #Solution 2: using loop FOR num=int(input("enter positive number ")) if(num>0): sum=0 for i in range(1, num+1): #i=1, ...., num if(num%i==0): print(i) sum=sum+i print("sum",sum) else: print("invalid input")