+ 1
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{ double x,y,z,a,b,c,d,e,f,g;
int m,n;
//enter your year of birth, month of birth, date of birth
cin>>x;
cin>>y;
cin>>z;
//enter the year, month and date
cin>>a;
cin>>b;
cin>>c;
d=(a-x)*365;
m=d/1460;
d+=m;
if (b-y>0)
{
e=(b-y)*30;
}
if (b-y==0)
{
e=0;
}
if (b-y<0)
{
e=(12+(b-y)*30);
}
if (z>c)
{
g=(30-(z-c)) ;
}
if(c>z)
{
g=c-z;
}
if (c==z)
{
g=0;
}
f=d+e+g;
cout <<"You are now "<<f<<"days old"<<endl;
cout <<"You are now "<<f/30<<"months old"<<endl;
cout<<"You are now "<<f/365<<"years old"<<endl;
return 0;
}



