/*    Assignment 2     */


/* Program for converting inches to cm */

#include 
main ()
{
	/* declaration of variables */
        double inches;
        double cm;

	/* prompt for user input */
        printf("Please enter inches > ");
        scanf("%lf", &inches);

	/* conversion of inches to cm */
        cm = 2.54 * inches;

	/* display values */
        printf("%f inches = %f cm\n", inches, cm);
}

    Source: geocities.com/fire_168