Simple interest
#include < stdio.h >
void main()
{
int amount, rate, time, ans;
{
int amount, rate, time, ans;
printf("\nEnter Principal Amount : ");
scanf("%d", &amount);
scanf("%d", &amount);
printf("\nEnter Rate of Interest : ");
scanf("%d", &rate);
scanf("%d", &rate);
printf("\nEnter Period of Time : ");
scanf("%d", &time);
scanf("%d", &time);
ans = (amount * rate * time)/100;
/*Simple interest formula*/
printf("\nSimple Interest : %d",ans);
}
/*Simple interest formula*/
printf("\nSimple Interest : %d",ans);
}
Comments
Post a Comment