mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-14 22:38:46 +00:00
15 lines
222 B
C
15 lines
222 B
C
int nonce; // For random input
|
|
|
|
int fibonacci(int n) {
|
|
if (n < 2) {
|
|
return n;
|
|
}
|
|
|
|
return fibonacci(n - 2) + fibonacci(n - 1);
|
|
}
|
|
|
|
int main() {
|
|
int number = nonce % 20;
|
|
return fibonacci(number);
|
|
}
|