Programming Step 10 (cont.)
(…)
pounds = 9; /* second set of data */
ounces = 5;
grams = pounds * 454 + ounces * 28.35;
printf(“The total weight in grams is %f\n”, grams);
pounds = 10; /* third set of data */
ounces = 5;
grams = pounds * 454 + ounces * 28.35;
printf(“The total weight in grams is %f\n”, grams);