Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
324
import math while(True): n=int(input()) if n==0: break o=math.factorial(n) print(str(n)+"!"+" --") st=str(o) for i in range(0,5,1): print(" (",end='') print(i,end='') print(")",end='') print(repr(st.count(str(i))).rjust(4),end='') print() for i in range(5,10,1): print(" (",end='') print(i,end='') print(")",end='') print(repr(st.count(str(i))).rjust(4),end='') print()
run
|
edit
|
history
|
help
0
P
double
PyDataDescript
https://rextester.com/REAL13110
Janvi
quizcorrect
Va
Принцип наименьшего времени Ферма
BasicFunctionsPrograms,py
Python Unit Test Case Sample