Question: (c++) 2- Write the C++ code for the next problem: Ask the user about his age in years, then display his age in months, days,

(c++)
(c++) 2- Write the C++ code for the next problem: Ask the

2- Write the C++ code for the next problem: Ask the user about his age in years, then display his age in months, days, and hours. (Year =12 Months =365 Days = 36524 Hours) Make this program does not accept negative values (Display an error message if the user enters his age smaller than Zero)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!