Computer Science, asked by vipinranaadvocate470, 1 month ago

write a Java program for the following : write a program in java to calculate simple interest (SI) for principal amount (P) as '125000 with rate (R) as 72% and time (T) as 3years​

Answers

Answered by avanisaroha111
2

Answer:

import java.util.Scanner;

public class JavaExample

{

   public static void main(String args[])  

   {

       float p, r, t, sinterest;

       Scanner scan = new Scanner(System.in);

       System.out.print("Enter the Principal : ");

       p = scan.nextFloat();

       System.out.print("Enter the Rate of interest : ");

       r = scan.nextFloat();

       System.out.print("Enter the Time period : ");

       t = scan.nextFloat();

       scan.close();

       sinterest = (p * r * t) / 100;

       System.out.print("Simple Interest is: " +sinterest);

   }

}

Explanation:

change digits and then find and please mark me as brainliest!

Similar questions