Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
CSH2012 LAB12 factorial.py
calcpage
Jun 1st, 2013
476
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Python
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
#!/usr/bin/python
#factorial.py MrG 2013.0517
def
fact
(
n
)
:
if
n
==
0
:
return
1
else
:
return
n*fact
(
n-
1
)
print
"i
\t
fact(i)"
for
i
in
range
(
100
)
:
print
i
,
"
\t
"
,
fact
(
i
)
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
CSS | 36 min ago | 1.88 KB
Script Roblox Trade Strength Simulator Versio...
Lua | 43 min ago | 0.18 KB
SpaceVerse: Excelsior v2.0 - Claude
HTML | 1 hour ago | 32.04 KB
Decimal
Java | 1 hour ago | 0.41 KB
FastLED - LEDs blinking past end of array?
C++ | 3 hours ago | 10.79 KB
C++ Motion Matching
C++ | 4 hours ago | 81.95 KB
Chest auslesen Test Tekkit2
Lua | 5 hours ago | 1.53 KB
ticket
Bash | 7 hours ago | 0.17 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!