functioning function

prints the fibonacci number and the sum of all even numbers while the
fibonacci number is lower than 4000000.