#Write a program that reads a positive integer and finds the number of #digits in the input, sum of the digits, and the average of the digits. count_digit=0 sum=0 num=int(input("enter positive integer ")) save_num=num if(num>0): while(num>0): d=num%10 num=num//10 sum=sum+d count_digit=count_digit+1 print("there are", count_digit, "digits in", save_num) print("their sum", sum) print("their average", sum/count_digit) else: print("in valid input")