// y = year
else if (y % 4 == 0 && y % 100 != 0 || y % 400 == 0) {
std::cout << y;
std::cout << ", Lucky you, this is a leap year\n";
so as a whole this challenge wasn’t too crazy for me and I get the rest of the code.
the part I’m not understanding is why this, else if, is stated this way
the way I read it is if y is divided into 4 with no remainder AND y is divided into 100 with a remainder not equal to 0 or y is divided into 400 evenly with no remainder, this is a leap year.
the problem if the != portion. It means not equal to, right?
I feel it"s one of those things that I understand but my brain can"t fully grasp the concept of how it"s working code wise