top of page

Write an apex program to calculate the simple interest

  • Writer: Abhilash Banpurkar
    Abhilash Banpurkar
  • Nov 10, 2022
  • 1 min read

Program for Simple interest:



integerprincipalAmount,tenure,rateofinterest, interestAmount;
principalAmount=20000;
tenure=5;
rateofinterest=3;
interestAmount=(PrincipalAmount*tenure*rateofinterest)/100;
System.debug('InterestAmountis.'+interestAmount);





Output:



Comments


bottom of page