Write A C++ Program Which Accept Principle, Rate And Time From User And Print The Simple Interest.

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

(adsbygoogle = window.adsbygoogle || []).push({}); Program Code:#includeusing namespace std;int main(){ int principle,rate,time,interest; cout<<" Enter Principle : ";
cin>>principle; cout< cout<<" Enter Rate : "; cin>>rate; cout< cout<<" Enter Time : "; cin>>time; cout< interest = (principle * rate * time)/100; cout<<" Simple interest is : "<< interest; return 0;}
The program code is tested on www.jdoodle.comOutput:Enter Principle : 1000Enter Rate : 2Enter Time : 4
Simple interest is : 80

(adsbygoogle = window.adsbygoogle || []).push({}); ThanksMukesh Rajput