Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Write a function to compute the sum of all even Fibonacci numbers below a given number.

Hard

Problem Statement

Write a function to compute the sum of all even Fibonacci numbers below a given number.

Sample Input

100

Sample Output

44

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
def sum_of_even_fibonacci(): n = 100 # Your code here return
Log in or sign up to run or submit your code.Log inSign up
Input
100
Expected Output
44