I'm 28 (oops, 29 now) and I want to be C literate by the time I'm 30. That's two (one) years to become competent at something I've been wanting to do nearly my whole life. No pressure.
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.
Labels:
C,
Project Euler
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment