Sum of Even Fibonacci Numbers

Tagged with : C++

Written on August 13, 2017

This is the program to solve the question 2. I accomplished the results to be correct up to value of 7 digits of n. Still needs to optimize, I guess it would work correctly in java for 20 digits n value if data type is taken as long int.