Welcome to Project Euler.
int x = 1, prev = 0, temp = 0; for(int i = 0; i < 4; i++) { temp = x; x += prev; prev = temp; cout << x << " "; }
The mathematical code playground. Solve problems.
What is Project Euler?
-
We provide mathematical problems of increasing difficulty for you to solve.
-
You think, research, and submit a solution. We tell you if your answer is correct.
-
Keep solving problems to challenge your mind and increase your logical and mathematical skills!