From eedc0d1271bf2b80e26570c58cf95be912403a61 Mon Sep 17 00:00:00 2001 From: Daniele Fucini Date: Thu, 19 Sep 2019 21:30:44 +0200 Subject: [PATCH] Correct C code for Problem 19 --- C/p019.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/p019.c b/C/p019.c index ce4f365..20c9987 100644 --- a/C/p019.c +++ b/C/p019.c @@ -23,7 +23,7 @@ int main(int argc, char **argv) { if(month == feb) { - if(i % 400 == 0 || (i % 4 == 0 && i % 100 != 0)) + if(year % 400 == 0 || (year % 4 == 0 && year % 100 != 0)) { limit = 29; }