Write ClassLength. Read a start time and an end time as hours and minutes (8 30 9 45) and print the length in minutes, in hours and minutes, and as a percentage of the day (1 decimal, followed by %):
Length: 75 minutes
That is 1 h 15 min
Share of the day: 5.2%
The end time may be after midnight (22 0 1 30 lasts 210 minutes): make it work without an if. In printf, how do you print a percent sign?