Computer Science, asked by hhtyyg, 1 year ago

Write a program (WAP) in Java to find the simple interest and amount when Principal, Interest & Time are given.

Answers

Answered by Anonymous
14

// To find the simple interest and amount by using assignment statement

public class interest

{

public static void main(String args[ ])

{ int p,r,t;

double si=0, amt=0;

p=5000;r=10;t=2;

amt=p+si;

System.out.println("The amount =" +amt);

System.out.println("The simple interest =" +si);

}

}

Similar questions