Guest User

Untitled

a guest
Jun 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.05 KB | None | 0 0
  1. def fct n
  2. n==1 ? n : n * (fct n-1)
  3. end
  4.  
  5. puts fct(6)
Add Comment
Please, Sign In to add comment