// A program to compute the number of liters for 1, 2, ..., 12 quarts
// Version 2:  simple table with formatting of integers and reals

#include <iostream.h>

int main (void)
{   int quarts;
    double liters;

    cout << " Table of quart and liter equivalents" << endl
          << endl; 


    cout << "Quarts        Liters" << endl;

    cout.setf(ios::fixed);                      /* used fixed decimal 
                                                   representation for float */
    cout.precision(4);                          /* print 4 decimal places */

    for (quarts = 1; quarts <= 12; quarts++)
      { liters  = quarts / 1.056710 ;
        cout.width(4) ;                         /* output width = 4 char */
        cout << quarts ;
        cout.width(16);
        cout << liters << endl;
      }

    return 0;
}
