Search
 
SCRIPT & CODE EXAMPLE
 

CPP

program in c++ for 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 :: No Index Out of Bound Checking in C++ 
Cpp :: different way to print string in c++ 
Cpp :: c++ rgb code 
Cpp :: partition in STL using vector 
Cpp :: cpp reference array 
Cpp :: c++ void pointer 
Cpp :: Patrick and Shopping codeforces in c++ 
Cpp :: why does the pointer value doesn;t change when I change it in funciton 
Cpp :: appdivind c++ stuctures 
Cpp :: number triangle c++ 
Cpp :: inbuilt function for bin to dec in c++ 
Cpp :: https://www.geeksforgeeks.org/a-program-to-check-if-strings-are-rotations-of-each-other/ 
Cpp :: Int main ( ) { int i,n; cinn; i=n; while(i=1) { i=i+5; i=i-6; } } 
Cpp :: sort in descending order c++ 
Cpp :: backward chaining python 
Cpp :: how to display score using SDL in c++ 
Cpp :: Swift if...else Statement 
Cpp :: total sales in array c++ two dimensional array 
Cpp :: split date and time in a column in db browser 
Cpp :: Integer Literrals in C++ Programming 
Cpp :: how to analyse a poem 
Cpp :: assignment operator 
Cpp :: int to string Using to_string method 
Cpp :: loop in c++ 
Cpp :: imgui menu bar 
Cpp :: 2927260.eps 2927262.jpg 2927263.ai License free.txt License premium.txt 
C :: how to create random integers from a specific range in c language 
C :: find factors of a number in c 
C :: printf with bool 
C :: bash convert find to array 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =