#include <stdio.h>
#include "math.h"
main()
{
float sb,rate,total,tot;
clrscr();
printf("Interest calculation program./n");
printf("Starting balance?");
scanf("%f",&sb);
printf("Annual interest rate percentage?");
scanf("%f",&rate);
rate=1+rate/100;
total=sb*rate;
tot=total*rate;
printf("Balance of one year:%g/n",total);
printf("Balance of two years:%g",tot);
getch();
}
#include "math.h"
main()
{
float sb,rate,total,tot;
clrscr();
printf("Interest calculation program./n");
printf("Starting balance?");
scanf("%f",&sb);
printf("Annual interest rate percentage?");
scanf("%f",&rate);
rate=1+rate/100;
total=sb*rate;
tot=total*rate;
printf("Balance of one year:%g/n",total);
printf("Balance of two years:%g",tot);
getch();
}