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
1
Expert's answer
2012-09-14T10:51:29-0400
#include <conio.h> #include <iostream> using namespace std;
int main(){ & int i,j,q,w; cout<<"Enter your age in years: "; & cin>>i; & q=i*12; j=i*360; w=j*24; & & cout<<"\nYour age in months: "<<q;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment