Write a Program for calculate interest in C
#include <stdio.h>
int main()
{
float amount,rate,time,interest;
printf("\n Enter 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