/* A simple program to convert a number of quarts to liters
 * Version 1:  global variables only
 * Author: Henry Walker 
*/

#include <stdio.h>                    /* reference to standard I/O library */

const double QUARTS_PER_LITER = 1.056710; /* define constant conversion factor */

int
main (void)                               /* beginning of main program */
{
    int quarts;                           /* variable declarations */
    double liters;                        /* double = real */
    
    printf ("This program converts a number of quarts to liters\n");  
                                          /* write opening statement */

    quarts = 2;                           /* specify the number of quarts as 2 */

    liters = quarts / QUARTS_PER_LITER;   /* arithmetic, assignment */

    printf ("%d quarts = %lf liters\n", quarts, liters);
                                          /* write text and new line */

    return 0;                             /* the program ran without errors */
} // main
