Correct C code for Problem 19

This commit is contained in:
2019-09-19 21:30:44 +02:00
parent 7d6b55e9cf
commit eedc0d1271

View File

@ -23,7 +23,7 @@ int main(int argc, char **argv)
{ {
if(month == feb) 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; limit = 29;
} }