Welcome to Online IDE!! Happy Coding :) Year: 2020 Month:1 Day: 5 This is the month: JAN(1) This is the month inputted: JAN(1) FINAL ADDING: 5 day(s) for JAN (5 Total days) LEAP YEAR 5 JAN is before/equal to 28 FEB, NO ADJUSTMENT REQUIRED This is the date: 05/01/2020 number days: 5 ** Process exited - Return Code: 0 ** ----------------------------------------------------------- Welcome to Online IDE!! Happy Coding :) Year: 2020 Month:2 Day: 28 This is the month: JAN(1) This is the month inputted: FEB(2) ADDING: 31 days for JAN (31 Total days) This is the month: FEB(2) This is the month inputted: FEB(2) FINAL ADDING: 28 day(s) for FEB (59 Total days) LEAP YEAR 28 FEB is before/equal to 28 FEB, NO ADJUSTMENT REQUIRED This is the date: 28/02/2020 number days: 59 ** Process exited - Return Code: 0 ** ----------------------------------------------------------- Welcome to Online IDE!! Happy Coding :) Year: 2020 Month:3 Day: 1 This is the month: JAN(1) This is the month inputted: MAR(3) ADDING: 31 days for JAN (31 Total days) This is the month: FEB(2) This is the month inputted: MAR(3) ADDING: 28 days for FEB (59 Total days) This is the month: MAR(3) This is the month inputted: MAR(3) FINAL ADDING: 1 day(s) for MAR (60 Total days) LEAP YEAR MAR is beyond FEB, ADDITIONAL DAY ADDED ADDING: 1 day for LEAP year: (61 days) This is the date: 01/03/2020 number days: 61 ** Process exited - Return Code: 0 ** ----------------------------------------------------------- Welcome to Online IDE!! Happy Coding :) Year: 2021 Month:12 Day: 24 This is the month: JAN(1) This is the month inputted: DEC(12) ADDING: 31 days for JAN (31 Total days) This is the month: FEB(2) This is the month inputted: DEC(12) ADDING: 28 days for FEB (59 Total days) This is the month: MAR(3) This is the month inputted: DEC(12) ADDING: 31 days for MAR (90 Total days) This is the month: APR(4) This is the month inputted: DEC(12) ADDING: 30 days for APR (120 Total days) This is the month: MAY(5) This is the month inputted: DEC(12) ADDING: 31 days for MAY (151 Total days) This is the month: JUN(6) This is the month inputted: DEC(12) ADDING: 30 days for JUN (181 Total days) This is the month: JUL(7) This is the month inputted: DEC(12) ADDING: 31 days for JUL (212 Total days) This is the month: AUG(8) This is the month inputted: DEC(12) ADDING: 31 days for AUG (243 Total days) This is the month: SEPT(9) This is the month inputted: DEC(12) ADDING: 30 days for SEPT (273 Total days) This is the month: OCT(10) This is the month inputted: DEC(12) ADDING: 31 days for OCT (304 Total days) This is the month: NOV(11) This is the month inputted: DEC(12) ADDING: 30 days for NOV (334 Total days) This is the month: DEC(12) This is the month inputted: DEC(12) FINAL ADDING: 24 day(s) for DEC (358 Total days) This is the date: 24/12/2021 number days: 358 ** Process exited - Return Code: 0 ** -----------------------------------------------------------