Test dependencies

This commit is contained in:
2026-06-26 20:51:42 +00:00
parent 7e3b0e1c10
commit 1cc53f8bee
5 changed files with 31 additions and 4 deletions
+12
View File
@@ -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;
}