โ† Raja Software Labs questions

Print Fibonacci number or sum of even Fibonacci numbers below it

Filed under Raja Software Labs

The question

Given a number, print it if it is a Fibonacci number; otherwise print the sum of all even Fibonacci numbers less than it (20 gives 10, 21 gives 21).

No write-up yet. Related questions below have one.

Related Raja Software Labs questions

Collected from public candidate posts and coding forums. Updated Nov 2026.