you use the modulo operator %.
Convert it to minutes first, then use the modulo operator to convert to hours and minutes:
Code:
int seconds = 7300;
int minutes = 0;
int hours = 0;
// start calculation
minutes = seconds/60;
hours = minutes/60;
minutes = minutes%60;
I'm getting 2hr 1min btw. Then you just use a printf() to print the values.