float SimpleInterest(float P, float R, float T) {
        float SI = (P * T * R) / 100;
        return SI
        }

      Cpp language logo
      Simple Interest

      Cpp recipes

      The code in this question calculates the simple interest on an amount of money. The amount of money, P, is multiplied by the interest rate, R, and the time, T, is used to calculate the simple interest. The resulting value is then divided by 100 to get the simple interest.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.