Java Program to find Simple Interest

Java program to find the Simple Interest :

In this program, we will learn how to find the simple interest using Java. To calculate simple interest, we need principal amount, rate of interest and time in year. After that , calculating the simple interest is really easy :

Simple Interest = (Principal * Rate of interest * time)/100

Java Program :

In this program, we will first take the inputs from the user . And then we will calculate the result and print it out.

import java.util.Scanner;

public class Main {

     * Utility functions
    static void println(String string) {

    static void print(String string) {

    public static void main(String[] args) {
        Scanner sc = new Scanner(;

        println("********** Simple Interest Calculator **********");

        println("Enter the amount :");
        float amount = sc.nextFloat();

        println("Enter Duration ( Years ):");
        float year = sc.nextFloat();

        println("Enter rate of Interest :");
        float rate = sc.nextFloat();

        float SI = (amount * year * rate) / 100;

        println("Simple Interest " + SI);

Sample Output :

********** Simple Interest Calculator **********
Enter the amount :
Enter Duration ( Years ):
Enter rate of Interest :
Simple Interest 3000.0

Similar tutorials :

Where is the color and why codevscolor ?

Long story short, I love paintings and I paint on weekends. We(me and my wife) have one Youtube channel. Below is a video that I did recently. If you love this please do subscribe to support us 😊