Computer Science, asked by sababano7019, 5 months ago

write a program to calculate the amount for a principal amount with an interest rate after one year note that you should enter the principal amount and interest rates through keyboard​

Answers

Answered by manyasharmma503
0

thx for free points njiojkmkkkh

Answered by kashishsingh17
1

Explanation:

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);

}

}

hope this helps

pls mark it as brainiest ♥️

Similar questions