Correct C code for Problem 19

This commit is contained in:
daniele 2019-09-19 21:30:44 +02:00
parent 7d6b55e9cf
commit eedc0d1271
Signed by: fuxino
GPG Key ID: 6FE25B4A3EE16FDA

View File

@ -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;
}