nctref/tests/funcdefs.nct
2025-01-02 18:07:55 +02:00

7 lines
104 B
Plaintext

fibonacci: u32(u32 n) -> {
if(n <= 1) {
return n;
}
return fibonacci(n - 1) + fibonacci(n - 2);
};