Last Updated: 16 July, 2022
In this tutorial, we are going to learn how to calculate simple interest using a Java program.
We can calculate simple interest based on the below given formula:
Simple Interest = (P × R × T) / 100
where,
Now, let's see how to write a Java program to calculate simple interest.
Suppose you have 10,000 INR and you want to deposit this amount into the bank for 5 years with 7.5% interest per year. Calculate the simple interest.
Output
Principal Amount: 10000.0
Rate of Interest: 7.5
Time (in Years): 5.0
Simple Interest is: 3750.0
Output
Please Enter the Principal Amount: 700000
Please Enter the Rate of Interest: 6.4
Please Enter the Time (in Years): 10
Simple Interest value is: 448000.0066757202
That's all guys, hope this Java Program is helpful for you.
Happy Learning... 😀
feedback@javabytechie.com