URI Online Judge Solution | 1020 Age in Days

Just think simple
if we take age input then if we want year then we have to divide the age with year,then if we want to find out the age in month as 1 year is 365 and 30 days of 12 months then we have to remainder and resultant value divided by 30 and at last for days of age we have to use remainder of 356 days and remainder of 30 respectively as 365 days for 1 year and 30 days for 1 months