/* This program shows a more complex numeric calculation. */ #include <stdio.h> main() { printf("C14.C -> Program to show more complex numeric calculations\n\n"); printf("Total cost of $10.00 item\n"); printf("%5.2f\n", 10.0 * (1.0 + 0.07) * (1.0 + 0.065)); return(0); } /* End of Program C14 */ /*OUTPUT :
C14.C -> Program to show more complex numeric calculations total cost of $10.00 item 11.40 */
Last modified: 21/07/97