Dsa
Math
Easy
Even Fibonacci Sum
You need to compute the sum of the even-valued terms in the Fibonacci sequence that do not exceed a given integer N. Write a program that takes N as input and outputs the sum of those even Fibonacci numbers.
Example:
Input:
10
Output:
10
Key concepts
fibonaccisequencesum
Practise this out loud — free
Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.
🎙 Practise this question now