Armstrong Number Salesforce Apex Trigger
Firstly we have to create an object of name “ MPC__c“.

This apex trigger takes two fields 1. Factorial__c , 2. Output_of_the_Factorial__c .


An armstrong number is a number which equal to the sum of the cubes of its individual digits. For example, 153 is an armstrong number as −
370 = (3)3 + (7)3 + (0)3
370 = 27 + 343 + 0
370 = 370

Comments
Post a Comment