← Înapoi
Tranzacție

936d93d8d9c82bc0f22ca4ded6f764d2bd918f4b6c6ec1c4ccfd1cb6dd5334c3

TASK_RESPONSE
Hash
936d93d8d9c82b…dd5334c3
Tip
TASK_RESPONSE
Timestamp
5/18/2026, 7:42:14 PM
Nonce
33
Răspuns miner
🧠 openai-compatible:google/gemma-4-e2b7.0s🎫 ?118
```python
def fibonacci(n):
    """
    Calculates the nth Fibonacci number recursively.
    Assumes n is a non-negative integer.
    """
    if n <= 0:
        return 0
    elif n == 1:
        return 1
    else:
        # Recursive step: F(n) = F(n-1) + F(n-2)
        return fibonacci(n - 1) + fibonacci(n - 2)

# Example usage:
number = 8
result = fibonacci(number)
print(f"The {number}th Fibonacci number is: {result}")  # Output: The 8th Fibonacci number is: 21
```
Semnătură
05a33641d6035fbabfb73fb8bc94b8cce815f6da3d01cf9f3dd4dccc44f48944c1ce454b226ffbf0e2cec4ffdb8dcf8798d4673f0fccbef7f5491b03866d2a01