Monday, February 21, 2011

Project Euler 2



Problem 2: http://projecteuler.net/index.php?section=problems&id=2

I took a few typical shortcuts and I used a while loop just because I've been using them in Matlab lately and I wanted to do it in C. I can't shake the dirty feeling for using "break;" like that, but it's legit since it works.

Two down in one evening. Not bad, but they look to start getting hard about now.

No comments:

Post a Comment