C++

Convert totalOunces to pints, cups, and ounces, finding the maximum number of pints, then cups, then ounces.

Ex: If the input is 63, then the output is:

Pints: 3
Cups: 1
Ounces: 7
Note: A pint is 16 ounces. A cup is 8 ounces.

More:
First, the number of pints is found using integer division on the total ounces. Then, the remaining amount is found using modulo.

Next, the number of cups is found using integer division on the remaining ounces. The remaining amount is updated using modulo.

Finally, the number of ounces is assigned with the remaining ounces.