Q:

C Program For Calculate Simple Interest

belongs to collection: Basic C Programs for Practice

0

Write A Program For Calculate A Simple Interest .Given Formula Show that to Calculate a Simple Interest .

With the following formula you can can calculate a Simple Interest Of Amount Given By User Input 

Formula :

Simple Interest = ( Amount * Rate * Time ) / 100;

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include<stdio.h>

int main()
{
   float amount, rate, time, si;

   printf("\nEnter Principal Amount : ");
   scanf("%f", &amount);

   printf("\nEnter Rate of Interest : ");
   scanf("%f", &rate);

   printf("\nEnter Period of Time   : ");
   scanf("%f", &time);

   si = (amount * rate * time) / 100;
   printf("\nSimple Interest : %f", si);

   return(0);
}

 

Output:

Enter Principal Amount : 5669.56

Enter Rate of Interest : 5.6

Enter Period of Time   : 3.0

Simple Interest : 952.486084

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C Program To Find Greater Number. Among Given Thre... >>
<< C Program to Convert a person\'s name in Abbr...