write a program to calculate and display the si and amount if the principal amount is 50000rate of interest is 9.5% and time in years is 5
Answers
Answered by
0
Answer:
class simpleinterest
{
public static void main(String args[ ] )
{
double p=50000,r=9.5,t=5,SI,amt;
si=(p*r*t)/100;
amt=p+si;
System.out.println("Simple interest " +si);
System.out.println("Amount " +amt);
}
}
Similar questions