Advertisement
Guest User

Untitled

a guest
Aug 20th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def factorial(k):
  2. solution = 1
  3. temp = 2
  4. while temp <= k:
  5. solution*=temp
  6. temp++
  7. return solution
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement