Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pure ulong fact(uint n)
- {
- writeln(n); //WTF?? IO in a pure function...
- return n < 2 ? 1 : n * fact(n-1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement