Fun Fibonacci
CodeChefOpen on judge ↗
The Fibonacci numbers are the numbers in the following integer sequence. 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ……..$F$n. F(n)=F(n-1)+f(n-2) If n=3 then F(3)=F(2)+F(1) F(3)=1+0=1 Write a program to find the value of the $n$th term if the fibonacci series. ###Input: - Each input contains of a single integers $n$. ###Output: For each testcase, output in a single
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start