Ad Code

Write a program in Java statements ,Ganesh has invested some amount in bank with simple intrest. The sum of amount is Rs.900 in 3 years and Rs. 960 in 4 years.Find out the principal amount using Java.

public class PrincipalAmt {
 public static void main(String[] args){
 int t1=3,t2=4,amt1 = 900, amt2=960;
 int SI = amt2-amt1;
 int Principal = amt1-(SI*t1);
System.out.println("Principal amount = "+Principal);
 }
}
Reactions

Post a Comment

0 Comments