C++ Program to Calculate Simple Interest

Write a C++ Program to Calculate Simple Interest with an example. This C++ program allows users to enter the actual amount (principle amount), ROI, and the total number of years and use them to calculate the simple interest.

#include<iostream>
using namespace std;

int main()
{
	 float PA, ROI, time, si;
	
	cout << "Please enter the Principal Amount  : ";
	cin >> PA;
	
	cout << "Please enter the Rate Of Interest : ";
	cin >> ROI;
	
	cout << "Please enter the Time Period in Years : ";
	cin >> time;
	
	si = (PA * ROI * time) / 100;
	
	cout << "\nSimple Interest      = " << si;
	
	return 0;
}
C++ Program to Calculate Simple Interest 1

About Suresh

Suresh is the founder of TutorialGateway and a freelance software developer. He specialized in Designing and Developing Windows and Web applications. The experience he gained in Programming and BI integration, and reporting tools translates into this blog. You can find him on Facebook or Twitter.