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