Write a program in JAVA to input principle, rate and time. Calculate the simple interest & print the result with appropriate messages. NOTE : Simple interest = (Principle x Rate x Time) / 100 *
Answers
Answered by
2
Explanation:
import java.util.*;
public class Simple
{
public static void main (String args[])
{
Scanner in=new Scanner(System.in);
double p,r,t,si;
System.out.println("Enter the principal");
p=in.nextDouble();
System.out.println("Enter the rate");
r=in.nextDouble();
System.out.println("Enter the time");
si=(p*r*t)/100.0;
System.out.println("The simple interest= "+si);
}
}
Similar questions
History,
2 months ago
Math,
2 months ago
Computer Science,
2 months ago
Math,
4 months ago
Computer Science,
4 months ago
Math,
9 months ago
Physics,
9 months ago