Computer Science, asked by doleejaiswal, 2 months ago

Write a program in Java to find the simple interest where Principal=Rs 103452, interest= 5.25%,
and time=5 years.​

Answers

Answered by atrs7391
1

package Brainly_Answers.Program;

public class Simple_Interest {

  public static void main(String[] args) {

      double p = 103452

      // p means Principle amount

      double r = 5.25

      //r means Rate of Interest per year

      double t = 5

      //t means Time in years

      double si = (p*r*t)/100;

      //si means Simple Interest

      double fa = p+si;

      //fa means Final Amount

      System.out.println("Simple Interest on the principle amount: "+si);

      System.out.println("Final amount after adding the principle to the S.I.: "+fa);

  }

}

Similar questions