#include <iostream>
using namespace std;
main()
{
int rem_days,years,months,days;
cout<<"Enter the Number of Days\n";
cin>>days;
years=days/365;
rem_days=days%365;
months=rem_days/30;
days=rem_days%30;
cout<<"The number of Years: "<<years<<endl;
cout<<"The number of Months: "<<months<<endl;
cout<<"The number of Days: "<<days<<endl;
}
No comments:
Post a Comment