➽ Program:-
#include<iostream>
using namespace std;
int main()
{
float principal_amount, rate, time, simple_interest;
cout<<"Enter Principal Amount: ";
cin>>principal_amount;
cout<<"Enter time(in years): ";
cin>>time;
cout<<"Enter Rate: ";
cin>>rate;
simple_interest = (principal_amount * rate * time) / 100;
cout<<"Simple Interest = " << simple_interest;
return 0;
}
➽ Output:-
Enter Principal Amount: 1700
Enter time(in years): 3
Enter Rate: 6.7
Simple Interest = 341.7
0 Comments
Please do not enter any spam link in the comment section.