WAP Program Using- (Accepting arguments through main() method) A principle amount 50000 is deposited at the rate 10% per annum for 3 years.Accept principle amount,rate of interest and year through main method and find simple interest using the following formula
SI=P*R*T/100
PLS ANSWER IT FAST PLS PLS PLS
Answers
Answered by
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);
}
Explanation:
Similar questions
Computer Science,
4 months ago
Physics,
4 months ago
Science,
9 months ago
Social Sciences,
9 months ago
English,
1 year ago
Social Sciences,
1 year ago