Computer Science, asked by adiisanerd, 8 months ago

Write a program to find the difference between Simple Interest (SI) and
Compound Interest (CI).(Take values of Principal, Rate and Time from user).
[Formula : Sl=( P*R*T)/100, CI =A-P where A=P*(1 +(R/100) )​

use java​

Answers

Answered by nikhapraseelan274
0

Answer:

java means

what you mean

Answered by fathimashailap
1

Answer:

import java.util.Scanner;

public class JavaExample

{

public static void main(String args[])

{

float p, r, t, sinterest;

Scanner scan = new Scanner(System.in);

System.out.print("Enter the Principal : ");

p = scan.nextFloat();

System.out.print("Enter the Rate of interest : ");

r = scan.nextFloat();

System.out.print("Enter the Time period : ");

t = scan.nextFloat();

scan.close();

sinterest = (p * r * t) / 100;

System.out.print("Simple Interest is: " +sinterest);

}

}

Output:

Enter the Principal : 2000

Enter the Rate of interest : 6

Enter the Time period : 3

Simple Interest is: 360.0

Similar questions