Outputting time in minutes and seconds C++

Firstly, I know homework is looked down on but I'm not asking anyone to complete this for me, just to guide a little. I've looked online but answers vary and are different and because I'm new it's a little confusing.

I need to make a program where the user inputs the name of a snail and the time taken for it to complete a lap of a track... The time needs to be put in in seconds but put out in minutes&seconds.

Which means I need it to say ran the course in 5 minutes(300 was entered for example), although the code currently doesn't work for that but I could figure that out probably, just need to know how I go about converting a number input by the user to be shown in minutes and seconds.