Write an algorithm to input principal amount, Rate and time and calculate simple interest and amount and display principal amount, rate, time, simple interest and amount. Write the above data by using flow chart.
Answers
Answered by
1
Answer:
import java.util.*;
class si
{
public static void main(String args [ ])
{
Scanner sc= new Scanner (System.in) ;
System.out.println("enter the principal, rate and time");
double p=sc.nextDouble();
double r=sc.nextDouble();
double t=sc.nextDouble();
double si;
si=p*t*r/100.0;
System.out.println("the si is"+si);
}
}
Similar questions