daily pastebin goal
35%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # coding: utf-8
  2. def factorial(x):
  3.     y = 1
  4.     while x > 1:
  5.         y = y * x
  6.         x -= 1
  7.     print(y)
  8.  
  9. factorial(4)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top