Hello,

I need to know how to make my program display 3:04 instead of 3:4 when you enter 184 as your minutes?

Thank You For Your Help.


/*Source Code*/

#include <iostream.h>

int main(){

int enterminutes;
double minutes;
double hours;

cout <<"Enter the number of minutes: "<<endl;
cin >> enterminutes;

hour = enterminutes/60;
minutes = (enterminutes %60);

cout <<"The time is: "<<hour<<":"<<minutes<endl;

return (0);
}