Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Sum of Digits / Digital Root

function digital_root(n) {
  return (n - 1) % 9 + 1;
}
 
PREVIOUS NEXT
Tagged: #Sum #Digits #Digital #Root
ADD COMMENT
Topic
Name
7+5 =