Computer Science, asked by bhavyakhandaka73, 20 hours ago

Write a program in small basic to calculate simple interest.

Answers

Answered by sharmakaushal3468
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