Closed melnikga closed 2 months ago
Hey @melnikga, please add this fibonacci program to examples
use core::felt252;
fn main() -> felt252 {
let n = 10;
let result = fib(1, 1, n);
result
}
fn fib(a: felt252, b: felt252, n: felt252) -> felt252 {
match n {
0 => a,
_ => fib(b, a + b, n - 1),
}
}
143
The parameters are now displayed in the callstack table.