oh, well, i had a different thought process. Plus i like to spread out my work. That's some really nice code though. Good job.
Challenges
Make a hack 

what's wrong with my code for number #2
Code:
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ofstream myfile;
myfile.open("fib.txt");
int n, second_term = 0, previous_term = 1 , term_now, ;
long long sum_actual = 0, sum = 0;
for (n = 0; n<4000001; n++)
{
sum = previous_term + second_term ;
previous_term = second_term;
second_term = sum;
if(sum % 2 == 0) { sum_actual += sum; }
}
myfile << sum_actual;
myfile.close();
cout<<sum_actual;
cin.get();
return 0;
}
nope didn't work
Edited my post did you saw?
It worked here, just tried...
It worked here, just tried...
i have the best site for you: ::[ www.try2hack.nl ]::
yeah the first few levels are easy but the further it goes the harder it gets.
yeah the first few levels are easy but the further it goes the harder it gets.

..