First of all I want to know what it is even called; lets take an example a number
153
now let's cube all its digits:
(1 * 1 * 1) + (5 * 5 * 5) + (3 * 3 * 3) == 153
if the output is 153
, what exactly is this thing called. I hope you understand what I'm trying to say now. I also want to implement the same thing in code without using any predefined methods in C#
How can I do that?
Please note that the input number can be dynamic and not hard coded like 153
as example