Berechnen Sie die Zeitkomplexität online
N=int(input()) #1
prod=1 #2
summ=0 #3
while N>0: #6
prod=prod*(N%10) #no of digts-n
summ=summ+(N%10) #n
N=N//10 #n
d=prod-summ #4
print(d) #552
#total =3n+6===orde will be 3n that is O(N) 123---9/
Yellowed Yacare