Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

if we run 9119 through the function, 811181 will come out, because 92 is 81 and 12 is 1.

function squareDigits(num){
    return Number(('' + num).split('').map(function (val) { return val * val;}).join(''));
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run
ADD COMMENT
Topic
Name
6+9 =