SHARE
TWEET

FactorialsCS1301xII_3.3.2

CryptoJones Dec 21st, 2018 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. i = mystery_int
  2. factorial_result = 1
  3. while i > 1:
  4.     if (i == mystery_int):
  5.         factorial_result = i * (i - 1)
  6.     else:
  7.         factorial_result = factorial_result * (i - 1)
  8.     i = i - 1
  9. print(factorial_result)
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