Test dependencies
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
extern "C" int fibonacci(int nth) {
|
||||
int next;
|
||||
int temp1 = 0;
|
||||
int temp2 = 1;
|
||||
for (int index = 1; index <= nth; index++) {
|
||||
next = temp1 + temp2;
|
||||
temp1 = temp2;
|
||||
temp2 = next;
|
||||
}
|
||||
|
||||
return nth;
|
||||
}
|
||||
Reference in New Issue
Block a user