Write a function fib :: Int -> Integer that, given a
natural
,
returns the
-th
element of the Fibonacci sequence.
test-1: Inputs with .
test-2: Inputs with .
test-3: Inputs with .
Author: Unknown
Translator: Jordi Petit
Generation: 2026-02-03T17:02:45.660Z
© Jutge.org, 2006–2026.
https://jutge.org