Sum of the even Fibonacci numbers less than or equal to 4000000. More...
#include <stdio.h>
Go to the source code of this file.
Functions | |
long | fib (const int n) |
Computes the nth Fibonacci number, starting with 1 and 2. | |
int | main (void) |
Sum of the even Fibonacci numbers less than or equal to 4000000.
https://projecteuler.net/problem=2
Definition in file 0002.c.
long fib | ( | const int | n | ) |
Computes the nth Fibonacci number, starting with 1 and 2.
n | An integer >= 1. |