/* Program : Ounces
 * Abstract: Converts ounces to cups, quarts, and gallons
 *          User must enter number of ounces.
 * Author  : J. Dalbey    10/11/97
 */
#include <stdio.h>
 
int main(void)
{
    int ounces;      /* Input - number of ounces */
    int cups;        /* Output - converted to cups */
    int quarts;      /*        - converted to quarts */
    int gallons;     /*        - converted to gallons */

    /* Get Input Data */
    printf("Enter number of ounces: ");
    scanf("%d", &ounces);

    /* Calculate conversions */
    cups = ounces / 8;
    quarts = cups / 4;
    gallons = ounces / 64;

    /* Display results */
    printf("%d Ounces = \n%d  cups\n%d quarts\n%d gallons\n",
              ounces, cups, quarts, gallons);
    return 0;
}