6 lines
129 B
Plaintext
6 lines
129 B
Plaintext
![]() |
// Test while loops in PascaLIGO
|
||
|
|
||
|
let rec fibo = (n : int, acc: int): int =>
|
||
|
if (n < 1) {acc;}
|
||
|
else {fibo (n-1,acc+n);};
|