fork download
  1. # your code goes here# Python code to demonstrate naive method
  2. # to compute factorial
  3. n = 4
  4.  
  5. fact = 1
  6. for i in range(1,n+1):
  7.  
  8. fact = fact * i
  9.  
  10. print ("The factorial of 23 is : ",end="")
  11. print (fact)
  12.  
Success #stdin #stdout 0.03s 9152KB
stdin
Standard input is empty
stdout
The factorial of 23 is : 24