Kodewick
Start learning →
Starter←→0 / 86

Minutes and Seconds

#067Startertotal / 60, total % 603 min

A run took 185 seconds. Turn that into minutes and seconds and show it as 3 min 5 s (work the numbers out, do not type them).

Should show
3 min 5 s
main.cpp
#include <iostream>
using namespace std;

int main() {
    int total = 185;
    // your code here: show the minutes and the seconds
    return 0;
}
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.