Find the Simple Interest in C++

Advertisements

Prev Tutorial Next Tutorial

C++ Program to Find the Simple Interest

There are three values involve in simple interest, Principal, Rate and Time. Simple interest is simple and easyest way to calculate interest charge on a loan. This type of interest usually applies for short-term loans.

Formula for Simple Interest

Simple Interest = (P * T * R)/100
  • P = Principle amount
  • T= Time Period
  • R= Rate of interest

Calculate Simple Interest in C++

#include<iostream.h>
#include<conio.h>

void main() 
{
  float amount, rate, time, si;
 
  clrscr();
  cout<<"Enter Principal Amount: ";
  cin>>amount;
 
  cout<<"Enter Rate of Interest: ";
  cin>>rate;
 
  cout<<"Enter Period of Time: ";
  cin>>time;
 
  si = (amount * rate * time) / 100;
  cout<<"Simple Interest: "<<si;
  
 getch();
}

Output 1

Enter Principal Amount: 3000
Enter Rate of Interest: 2
Enter Period of Time: 3

Simple Interest: 180

Output 2

Enter Principal Amount: 1000
Enter Rate of Interest: 2
Enter Period of Time: 2

Simple Interest: 40

Prev Tutorial Next Tutorial

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

Download Projects

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements