C tilidagi Fibonacci sonlarini hisoblaydigan funksiya misollari: #include <stdio.h> unsigned long long fibonacci(int n) { if (n == 0) { return 0; } else if (n == 1) { return 1; } else { return fibonacci(n-1) + fibonacci(n-2); } int main ((() { int n; printf ((("Enter a positive integer: "); scanf (("%d", &n); printf (("The %dth Fibonacci number is %llu\n", n, fibonacci(n)); return 0; } Fibonacci funksiyasi n-inchi Fibonacci sonini hisoblash uchun rekursiondan foydalanadi. Fibonacci funksiyasiga har bir qo'ng'iroq Fibonacci sonining n-chi va n-chi sonini hisoblaydi va ularni qo'shadi.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence