blob: a2475e8ebcc4b0c68ba76c8a498a7f2f61e3122f [file] [log] [blame]
int fact(int n) {
if (n > 0) return n * fact(n-1);
else return 1;
}
println(<selection>fact</selection>(3))
-----
int fact(int n) {
if (n > 0) return n * fact(n-1);
else return 1;
}
int result
if (3 > 0) result = 3 * fact(3 - 1);
else result = 1
println(result)