Computer Science, asked by seemarajvanshi206l5, 4 months ago

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 diva49
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