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

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

int quarts;                               /* declarations */
double liters;                            /* double = real */

main ()                                   /* beginning of main program */
{  printf ("Enter volume in quarts: ");   /* input prompt */

   scanf ("%d", &quarts);                 /* read */

   liters = quarts / 1.056710 ;           /* arithemtic, assignment */

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