Azer0s / HadesLang

The Hades Programming Language
https://hadeslang.gitbook.io/doc
MIT License
36 stars 2 forks source link

Recursive fibonacci sequence does not work #29

Closed Azer0s closed 7 years ago

Azer0s commented 7 years ago
c as num closed = fib:[7]
out:c
func fib[num n]
    case[($n is 0) or ($n is 1)]
        put n
    endcase

    put fib:[$n -1] + fib:[$n-2]
endfunc