Write a program in small basic to calculate simple interest.
Answers
Answered by
0
Answer:
Simple interest formula is given by:
Simple Interest = (P x T x R)/100
Where,
P is the principle amount
T is the time and
R is the rate
Now the program will be shown in c++ language .
Explanation:
// CPP program to find simple interest for
// given principal amount, time and rate of
// interest.
#include<iostream>
using namespace std;
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;
}
Similar questions
Hindi,
10 hours ago
Chemistry,
10 hours ago
Social Sciences,
20 hours ago
Social Sciences,
20 hours ago
English,
8 months ago