Computer Science, asked by Cynthia35, 1 month ago

Write a java program to calculate amount when principal is 30000, rate of interest is 10.5% after 5 years.


pls write full java program (the one who'll give the right answer I'll mark him/her as the brainliest ​

Answers

Answered by hariomlaheja01
1

Answer

class example

{

public static void main(String ar[])

{

int si ,p =30000 , t = 5;/*p is for principal and t is for time

si for simple interest*/

double r = 10.5;//r  is for rate of interest

si =(p*r*t)/100;//you can also take it without brackets

int amount;

amount =p + si;

System.out.println("The Amount is: "+amount);

}

}

Similar questions