123456789101112131415161718192021 |
- import scheme.base;
- import scheme.read;
- import scheme.write;
- import scheme.load;
- load("./procker.scm");
- function factorial(n) {
- var i;
- var p = 1;
- for (i = 1; i <= n; i += 1) {
- p *= i;
- }
- return p;
- }
- display(factorial(10));
- newline();
|