draw a flowchart to input principal,rate and time to calculate simple interest.
Answers
Answered by
1
Explanation:
here you goo. I got in my book
mark me brainlist
Attachments:
Answered by
0
Answer:
import java.util.Scanner;
public class Main
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.print("Enter principal amount:");
int principal = sc.nextInt();
System.out.print("Enter rate of interest amount:");
int rate = sc.nextInt();
System.out.print("Enter time period amount:");
int time = sc.nextInt();
double simpleInterest = (principal*time*rate)/100d;
System.out.println("The simple interest is " + simpleInterest);
}
}
Explanation:
Similar questions