Files use .rex, the command is rex, and the crate, runtime prefixes, docs, editor files and examples all use the new name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
180 B
Rexx
13 lines
180 B
Rexx
func fib(n: int): int {
|
|
if n < 2 {
|
|
return n
|
|
}
|
|
return fib(n - 1) + fib(n - 2)
|
|
}
|
|
|
|
func main() {
|
|
for i in 0..15 {
|
|
print("fib({i}) = {fib(i)}")
|
|
}
|
|
}
|