Q:

C++ Program For Calculate Simple Interest

belongs to collection: Simple Programs in C++ Programming

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<iostream>
using namespace std;
int main()
{
   float amount, rate, time, si;

   cout<<"\nEnter Principal Amount : ";
   cin>>amount;

   cout<<"\nEnter Rate of Interest : ";
   cin>>rate;

   cout<<"\nEnter Period of Time   : ";
   cin>>time;

   si = (amount * rate * time) / 100;
   cout<<"\nSimple Interest : "<< si<<endl;

   return(0);

}

 

Output:

Enter Principal Amount : 5669.56

Enter Rate of Interest : 5.6

Enter Period of Time   : 3.0

Simple Interest : 952.486

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 Th... >>
<< C++ Program to Convert a person\'s name in Ab...