Write a program that will prompt the user to enter number of hours.It computes and displays the numbers of week, days, hours within the input number of hours.

Write a program that will prompt the user to enter number of hours.It computes and displays the numbers of week, days, hours within the input number of hours. 






#include<iostream>
using namespace std;
int main()
{
int hours,w,d;
cout<<"Enter Number Of Hours: ";
cin>>hours;
w=hours/168;
hours=hours%168;
d=hours/24;
hours=hours%24;
cout<<w<<" Weeks: "<<"\t"<<d<<" Days: "<<"\t"<<hours<<" Hours"<<endl;
return 0;
}


Write a program that will prompt the user to enter number of hours.It computes and displays the numbers of week, days, hours within the input number of hours.