0
I want to write an algorithme which calculate the factorial of number then search how many a charactere is rewrited
Why This dont't work,but separatelly it work #factorial factorial=abs(int(input('wright a number'))) n=factorial-1 r=factorial//10 i=0 while n!=0: factorial=factorial*n; n=n-1 print('the factorial of the number is',factorial) char=input("what do you search:") def search(factorial,char): i=0 for c in factorial: if c==char: i+=1 return(i) print(search(factorial,char))
5 odpowiedzi