Thread: SumOfSum
View Single Post
  #1  
Old 01-05-2019, 03:53
CodeCracker CodeCracker is offline
VIP
 
Join Date: Jun 2011
Posts: 466
Rept. Given: 27
Rept. Rcvd 407 Times in 134 Posts
Thanks Given: 21
Thanks Rcvd at 1,889 Times in 359 Posts
CodeCracker Reputation: 400-499 CodeCracker Reputation: 400-499 CodeCracker Reputation: 400-499 CodeCracker Reputation: 400-499 CodeCracker Reputation: 400-499
SumOfSum

Generate a string for inputed sumofsum integer value:

Test value: input string "12345678"
sum("12345678") = 1+2+3+4+5+6+7+8 = 36
sum(sum("12345678")) = sum("36") = 3+6 = "9"
Attached Files
File Type: zip SumOfSum.zip (33.5 KB, 7 views)
Reply With Quote
The Following 4 Users Say Thank You to CodeCracker For This Useful Post:
Indigo (07-19-2019), mdj (01-18-2019), niculaita (01-06-2019), user1 (05-21-2019)