Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. print("podaj x:")
  2. x=int(input())
  3.  
  4. def silnia(x):
  5. if x<=1:
  6. return 1
  7. return x*silnia(x-1)
  8.  
  9. print(silnia(x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement