| Yacas |
| Factorial (1) | Michael Neumann |
6!; |
Calculates the factorial. Results
720. |
| Factorial (2) | Michael Neumann |
IsPosInt(_n) <-- IsInteger(n) and n > 0;
fac(0) <-- 1;
fac(n_IsPosInt) <-- n * fac(n-1);
fac(6);
|
Calculates the factorial. Results
720. |
| Hello World | Michael Neumann |
WriteString("Hello World");
|
| Prints "Hello World" onto the
screen. |