Friday, 9 May 2014

Write a program which accept principle, rate and time from user and print the simple interest.

Leave a Comment
Solution:-
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
   
    int principle,rate,time,intrest;
    cout<<"Enter Principle = ";
    cin>>principle;
    cout<<"Enter Rate = ";
    cin>>rate;
    cout<<"Enter Time = ";
    cin>>time;
    intrest=(principle*time*rate)/100;
    cout<<"The intrest rate is "<<intrest;
getch();
}
If You Enjoyed This, Take 5 Seconds To Share It