Question: J. Mendille. Mientocm.C 3. Extend the inchtocm. c program given in Figure 2-5 so that it reads in two input values: the number of feet,

 J. Mendille. Mientocm.C 3. Extend the inchtocm. c program given inFigure 2-5 so that it reads in two input values: the number

J. Mendille. Mientocm.C 3. Extend the inchtocm. c program given in Figure 2-5 so that it reads in two input values: the number of feet, followed on a separate line by the number of inches. Here is a sample run of the program: This program converts from feet and inches to centimeters. Number of feet? 5. Number of inches? 11. The corresponding length is 180.34 cm. FIGURE 2.5 inchtocm.c * File: inchtocm.c * This program reads in a length given in inches and converts it to its metric equivalent in centimeters. #include #include "genlib.h #include "simpio.h" main() double inch, cm; printf("This program converts inches to centimeters. In"); printf("Length in inches?): inch = Get Real(); cm = inch * 2.54; printf("%g in = $g cm ", inch, cm)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!