Computer Science, asked by abirmajumdar07, 24 days ago

À certain sum is invested at the rate of 10% per annum for 3 years.
Write a Java program to find and display the difference between compound Interest
(CI) and simple Interest (SI). Take the
an input.
sum
as

Answers

Answered by Shreyas235674
2

Answer:

here is the answer:-

This is the program:-

   public static void main(String args[]) {

       Scanner in = new Scanner(System.in);

       System.out.print("Enter Amount: ");

       double p = in.nextDouble();

       double si = p * 10 * 3 / 100;

       double ciAmt = p * Math.pow(1 + (10/100.0), 3);

       double ci = ciAmt - p;

       System.out.print("Difference between CI & SI: " + (ci - si));

   }

}

Explanation:

Answered by ӋօօղցӀҽҍօօղցӀҽ
2

refer the attachment hope its help u

☺️

Attachments:
Similar questions