Write a program (WAP) in Java to find the simple interest and amount when Principal, Interest & Time are given.
Answers
Answered by
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
Social Sciences,
6 months ago
English,
6 months ago
Chemistry,
11 months ago
Math,
11 months ago
Computer Science,
1 year ago
Chemistry,
1 year ago
Math,
1 year ago