Prime Dates

  • + 0 comments

    Five Corrections are their

    if(year % 400 == 0) { month[2] = 29; //It was 28 } else if(year % 100 == 0) { month[2] = 28; //It was 29 }

     x = x * 10000 + y1; // It was 1000 Changed 10000
        if(x % 4 == 0 || x % 7 == 0) { //It was AND changed to OR
            result = result + 1;
        }
    
                  if(m1 > 12) {
                y1 =  y1 + 1;
                m1 = 1; //It was m1+1, So changed to 1
            }