Search
 
SCRIPT & CODE EXAMPLE
 

CPP

simple interest rate

#include<iostream>
using namespace std;
int main()
{
	int p,t;
	float r,A;
	cout<<"Plese enter the intial principal balance ="<<p<<endl;
	cin>>p;
	cout<<"Plese enter the annual interest rate ="<<r<<endl;
	cin>>r;
	cout<<"Plese enter the time (in months) ="<<t<<endl;
	cin>>t;
	A=p*(1+r*t);
	cout<<"The simple intrest rate is="<<A<<endl;
	return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: e.cpp 
Cpp :: converter python to c++ code 
Cpp :: gcd of two number in c++ stl 
Cpp :: cicli informatica c++ 
Cpp :: error when using template base class members 
Cpp :: prime template c++ 
Cpp :: Call db.close() on Button_Click (QT/C++) 
Cpp :: convert ros time to double 
Cpp :: online computer graphics compiler c++ 
Cpp :: lower bound c++ 
Cpp :: c++ auto loop 
Cpp :: c++ remove last element from array 
Cpp :: int to string Using to_string method 
Cpp :: C++ Area and Circumference of a Circle 
Cpp :: c++ quicksort 
Cpp :: uses of c++ 
Cpp :: string array 2d c++ 
Cpp :: how to implement binders and decorators on c++ lik python? 
C :: find string in all files powershell 
C :: buble sort c 
C :: c random list 
C :: execution time of c program 
C :: %hd c 
C :: Succ de ch 
C :: strcasecmp in c 
C :: reverse list in C 
C :: scanf string in c 
C :: how do you make a copy of a linked list in c 
C :: print short in c 
C :: C scanf() to read a string 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =