Mr X is born on a Leap Year.That year can be any leap year say birthYear(ex 2000)
Now, Lets say we want to find out, how many times did he actually celebrated his birthday by considering any year. say 2050
So your input to the program is
yob(year of Birth):
od(observation date):
You need to find out how many leap year has passed between 2 dates.Both inclusive ie count 2000 as well as 2050 if they are leap year too.
Published By : Suraj Ghimire