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) |