/* * Print headings for table showing interest accumulation. */ #include #include #define PRINCIPAL 5000.00 /* start with $5000 */ #define INTRATE 0.06 /* interest rate of 6% */ #define PERIOD 7 /* over 7-year period */ int main() { printf("Interest Rate: %7.2f%%\n", INTRATE * 100); printf("Starting Balance: $ %7.2f\n", PRINCIPAL); printf("Period: %7i years\n\n", PERIOD); printf("Year Balance\n"); return EXIT_SUCCESS; /* assume program worked! */ }