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
Lesson 7 part 2
sendi
Game4
Well, this seems bad.
Basic_if_else.py
Calculate Volume of Sphere
RNG
Lesson5-
Monthly Calendar
Prime Factorization of a Number