admin@onlinelearningcenter.in (+91) 7 999 01 02 03

Leap Year Birthday

Suraj Ghimire
42 Posts

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
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin