← All problemsSign in

Simple Fibonacci

Please stick to the given input and output format. Do not print anything else which is not required! Lala is a newbie in the programming world. He just learned how to generate fibonacci series which he told this to his elder brother. To test his ability to think out of the box, the elder brother gave Lala an interesting problem. The problem is simple. The elder brother will give Lala an integer

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start