- #1

- 41

- 0

user puts in the month as 1-12

the day for whatever month

and the year, which has to include leapyears

leap years only occur when the year is divisible by 4 y%4==o or if divisible by 400 but NOT 100, so 2000 is a leap year but not 2100

so if somebody puts in month 1 day 1 and 2005 it will say 1

if it's month 12 and day is 31 and year is 2005 it will say 365

but if it was 2004 it would say 366

month 3, day 10, year 2005, would be 31+28+10 or just 69

can anybody do this

i guess it needs boolean stuff for the leap year

and a few switch and case things for the rest

i'm not feeling it though

i got one to kind of work with if statements but not correctly, and it was long