À 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
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
Social Sciences,
12 days ago
Math,
12 days ago
History,
12 days ago
Political Science,
24 days ago
Math,
24 days ago
Math,
9 months ago
Math,
9 months ago