Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
59ff1e6ecThis file is pinned to the selected release. Download the original to open it in your design tool.
int Fibonacci ( int loop );
int Fibonacci ( int loop ) {
int i, x, y, z;
x = y = 1;
for ( i = 0; i < loop; i++) {
z = x + y;
y = x;
x = z;
}
return z;
}
int main() {
int ret;
ret = Fibonacci(20);
return ret+1;
}