Exercise 7 · Chapter: Linear ProgramsRequired+50 XP
Minutes to Hours
Given total_minutes = 135, compute the hours and remaining minutes.
Your output should be:
2 hours and 15 minutes
Hint: Use / for integer division and % for remainder.
rust
fn main() {
}
Output
Run your code to see the output here.