alright, now I need to get the following function to tell me the number of leap years between two dates. It reads
As it is, it reads that every year is a leap. so for the distance from dates 1/1/1 to 1/1/100 it reads 99 leaps. Any suggestions?Code:int leap(int year, int year_1) { for((year%400 ==0 || (year%100 != 0 && year%4 == 0));year<year_1;year++) leapy+=leapy; }