belongs to collection: Simple Programs in C++ Programming
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;
#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
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
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