Program to convert days into years and weeks
#include <iostream>
using namespace std;
int main(){
int day, year, week, n;
cout
<< "Enter
Days" << endl;
cin
>> day;
year = day
/ 365;
week = day
/ 7;
cout
<< day<<"days
=" << endl ;
cout
<< week << "week
Or " << endl;
cout
<< year << "Years" << endl;
system("pause");
return 0;
}
Comments
Post a Comment