Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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
Please
log in
to post a comment.
DICTIONARY PROBLEM
p1
Game4
teste
Lesson3 part 2
shuru4
nnn
Max
abstractmethod 2
CalculoFactorial
stackse - search stackoverflow differently
Please log in to post a comment.