CALCULATE SIMPLE INTEREST
Code :
#include<stdio.h>
int main()
{
float p, t, r, si;
printf("=========================================\n");
printf("\tCalculate Simple Interest\n");
printf("=========================================\n");
printf("Enter Principal amount : ");
scanf("%f", &p);
printf("Enter Rate of interest : ");
scanf("%f", &r);
printf("Enter Time in years : ");
scanf("%f", &t);
si = (p * t * r)/100;
printf("\nSimple Interest = %.4f\n", si);
printf("-----------------------------------------\n");
return 0;
}
Come again Learn again !
< iCode Buzz />
No comments:
Post a Comment