/* June 10, 1998 */
/* program to display inches and centimeters conversion table */
#include
#include
#define STEP 6
#define CONV 2.54
main ()
{
/* declarations */
double small;
double large;
double sum;
double inches;
double cm;
printf("Enter the smallest number of inches> ");
scanf("%lf", &small);
printf("Enter the largest number of inches> ");
scanf("%lf", &large);
printf("\nThe requested inches to cm conversion table\n\n");
printf("Inches Centimeters\n");
printf("****** ***********\n");
for (inches = small; inches < large; inches += STEP)
{
cm = CONV * inches;
printf("%6.2f %15.2f\n", inches, cm);
}
}
               (
geocities.com/yosemite/rapids)                   (
geocities.com/yosemite)