Question: calculation using functions. 3. Write a C++ Program for age Sample Output Input: Enter the present date in the format dd mm yyyy: 16
calculation using functions. 3. Write a C++ Program for age Sample Output Input: Enter the present date in the format dd mm yyyy: 16 10 2019 Enter the birth date in the format dd mm yyyy: 14 12 1996 Output: Your age is: 22 years 10 months 2 days.
Step by Step Solution
3.51 Rating (161 Votes )
There are 3 Steps involved in it
c include using namespace std Function to check if a year is a leap year bool isLeapYearint year Return true if the year is divisible by 4 and not by 100 or is divisible by 400 return year 4 0 year 10... View full answer
Get step-by-step solutions from verified subject matter experts
