Write a program to find the difference between Simple Interest (SI) and
Compound Interest (CI).(Take values of Principal, Rate and Time from user).
[Formula : Sl=( P*R*T)/100, CI =A-P where A=P*(1 +(R/100) )
Answers
Answered by
1
Answer:
class A
{
void fun(int p, int r,int t)
{
int I =( p*r*t)/100);
int A= a*(1+ r/100) ;
System.out.println(A-p-I);
}
}
Explanation:
note use java .lang.Mathpow()for time if required
Similar questions