Question: //Hi, I'm working on a function of a larger program that counts the number of leap years through a wide range of dates. I'm told
//Hi, I'm working on a function of a larger program that counts the number of leap years through a wide range of dates. I'm told that both mathematical equations are accurate, but I // am likely using flawed syntax having an if statement inside of a for loop. Thank you for your debugging help.
#include
int main() { int i, y=2000, numleapyears=0; for(i=1;i } printf("%d", numleapyears); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
