Answer to Question #14867 in C++ for arif hussain
Write a program to get age (in years) of a person (input taken from the user). Calculate the age in months, days & hours and then print all these on the screen
using namespace std;
cout<<"Enter your age in years: ";
& cout<<"\nYour age in months: "<<q;
cout<<"\nYYour age in days: "<<j;
cout<<"\nYour age in hours: "<<w<<"\n\n";
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments: C++
Leave a comment