/****************************************************************************/ /* int_cal : Interest calculation program */ /* This program gives the balance after one year based on the interest rate */ /* given by the user */ /* */ /* Written by: Vinita Bhatia */ /* Revision 0: June 1, 1996 */ /* */ /****************************************************************************/ #include <stdio.h> main() { float st_bal, /* Starting balance */ int_rate; /* Interest rate */ printf( "Interest Calculation Program.\n" ); printf( "Enter the Starting Balance? " ); scanf( "%f", &st_bal ); printf( "Annual interest rate percentage? " ); scanf( "%f", &int_rate ); printf( "Balance after one year: %.2f\n", st_bal + st_bal * ( int_rate / 100 ) ); return 0; }