Advertisement
hpolzer

Fakultaet (bc)

Apr 19th, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. /*
  2. Compute factorial (bc)
  3. Henning Polzer,
  4. 17. April 2015
  5. */
  6.  
  7. define fakultaet (z) {
  8. k = 1
  9.  
  10. for (i = 2; i < z + 1; i++)
  11. k *= i
  12.  
  13. return k
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement