sunil_h_v wrote: > No i dont write programs for free. Neither do i do homeworks. A second > semester student should probably be writing good enough programs by > now. Try on your own, if you have any problems then ask us. > > > --- In [email protected], "Devils Call me Grand Paa" > <[EMAIL PROTECTED]> wrote: >> Write a complete program that determine the day number (1to 366) in a >> year for a date that is provided as input in the format dd-mm-yyyy as >> an example 01-01-2000 is day 1.31-12-2001 is the day 365.31-12-2000 is >> day 366 because 2000 is leap year. A year is leap year if it is >> divisible by 4. You may assume that user has entered input in the >> correct format that is valid date.
BTW, that is technically incorrect. A leap year occurs every 4 years except every 100 years except every 400 years. -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 *NEW* MyTaskFocus 1.1 Get on task. Stay on task. http://www.CubicleSoft.com/MyTaskFocus/
