From f22af0ffaf80f3e504eab4256aedde1be1014e67 Mon Sep 17 00:00:00 2001 From: H Hautakoski Date: Fri, 18 Jun 2010 16:22:13 +0200 Subject: [PATCH] p2: optcode and readable fix. --- p2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p2.c b/p2.c index 158443c..deb7121 100644 --- a/p2.c +++ b/p2.c @@ -15,11 +15,11 @@ int main() { while(c < 4000000) { - c = a+b; + c = a + b; a = b; b = c; - if((c % 2) == 0) + if (c & 1) r += c; }