Computer Science, asked by adiisanerd, 7 months ago

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 arvindanamika8
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