C++ Program To Find Simple Interest Last Updated : 21 Feb, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report Try it on GfG Practice What is 'Simple Interest'? Simple interest is a quick method of calculating the interest charge on a loan. Simple interest is determined by multiplying the daily interest rate by the principal by the number of days that elapse between payments. Simple Interest formula: Simple interest formula is given by: Simple Interest = (P x T x R)/100 Where, P is the principal amount T is the time and R is the rate Examples : Example 1: Input: P = 10000 R = 5 T = 5 Output: 2500 We need to find simple interest on Rs. 10,000 at the rate of 5% for 5 units of time. Example 2: Input: P = 3000 R = 7 T = 1 Output: 210Recommended PracticeSimple InterestTry It! The formula to calculate the simple interest is: simple_interest = (P * T * R) / 100 where P is the principal amount, T is time & R is the rate of interest. Below is the implementation of the above example: C++ // C++ program to find simple interest // for given principal amount, time // and rate of interest. #include<iostream> using namespace std; // Driver code int main() { // We can change values here for // different inputs float P = 1, R = 1, T = 1; // Calculate simple interest float SI = (P * T * R) / 100; // Print the resultant value of SI cout << "Simple Interest = " << SI; return 0; } Output: Simple Interest: 0.01 Time complexity: O(1).Auxiliary space: O(1). Comment More infoAdvertise with us Next Article C++ Program To Find Simple Interest K kartik Follow Improve Article Tags : C++ Programs C++ C Basic Programs Practice Tags : CPP Similar Reads C++ Program To Find Compound Interest What is 'Compound interest'? Compound interest is the addition of interest to the principal sum of a loan or deposit, or in other words, interest on interest. It is the result of reinvesting interest, rather than paying it out, so that interest in the next period is then earned on the principal sum 2 min read C++ Program To Find Sum of First N Natural Numbers Natural numbers are those positive whole numbers starting from 1 (1, 2, 3, 4, ...). In this article, we will learn to write a C++ program to calculate the sum of the first N natural numbers. AlgorithmInitialize a variable sum = 0.Run a loop from i = 1 to n.Inside the loop, add the value of i to the 1 min read C++ Program to Make a Simple Calculator A simple calculator is a device used to perform basic arithmetic operations such as addition, subtraction, multiplication, and division. It makes arithmetic calculations easier and faster. In this article, we will learn how to code a simple calculator using C++.ExamplesInput: Enter an operator (+, - 3 min read C++ Program to Count the Number of Spaces in a File Here, we will see how to count number of spaces in a given file. First, we will read the contents of the file word by word, keep one counter variable 'count', and set it to zero while declaring. Increment 'count' each time you read a single word from the file. Example: Input: Geeks For Geeks Output: 2 min read Program to find Sum of the series 1*3 + 3*5 + .... Given a series: Sn = 1*3 + 3*5 + 5*7 + ... It is required to find the sum of first n terms of this series represented by Sn, where n is given taken input.Examples: Input : n = 2 Output : S<sub>n</sub> = 18Explanation:The sum of first 2 terms of Series is1*3 + 3*5= 3 + 15 = 18Input : n = 8 min read Like