5 + 2 + 4 + 1 + 2 = 14 Sum of the digits in the string Digit Digit Digit Digit Digit Sum of the digits The sum of the digits in the string is: ab5c2d4ef12s 2 1 ef 4 14 d 2 c 5 s ab w3resource.com