import java.util.Scanner;
public class ClassName {
public static void main(String[] args)
{
double principal;
double rate;
double time;
Scanner sc = new Scanner(System.in);
System.out.print("Enter the principal amount ");
principal = sc.nextDouble();
System.out.print("Enter the rate of interest ");
rate = sc.nextDouble();
System.out.print("Enter the time ");
time = sc.nextDouble();
double interest = (principal * rate * time) / 100;
System.out.println("The calculated Simple Interest is " + interest);
}
}
Enter the principal amount 75000
Enter the rate of interest 6.25
Enter the time 3
The calculated Simple Interest is 14062.5
Copyright © 2023 - Proleed Academy | All Rights Reserved.