Write A C program For Simple interest calculation
#include<stdio.h>
int main()
{
float amount,rate,time,interest;
printf("\n Enter the amount is: ");
scanf("%f", &amount);
printf("\n Enter rate of interest: ");
scanf("%f", &rate);
printf("\n Enter time period: ");
scanf("%f", &time);
interest=(amount*rate*time)/100;
printf("interest is:%f", interest);
return 0;
}
Comments
Post a Comment