Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.11 KB | None | 0 0
  1. pure ulong fact(uint n)
  2. {
  3.     writeln(n); //WTF?? IO in a pure function...
  4.     return n < 2 ? 1 : n * fact(n-1);      
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement