blob: 4eaab982b26f81d986436fe5148ad5db48f57b72 [file] [log] [blame]
def tail(int jjj) {
println jjj
if (true)
return fact(jjj)
else
return <selection>fact</selection>(jjj)
}
int fact(int n) {
if (n > 0) {
return n * fact(n - 1)
}
else return 1
}
-----
def tail(int jjj) {
println jjj
if (true)
return fact(jjj)
else {
if (jjj > 0) {
return jjj * fact(jjj - 1)
} else return 1
}
}
int fact(int n) {
if (n > 0) {
return n * fact(n - 1)
}
else return 1
}