Thread: SumOfSum
View Single Post
  #1  
Old 01-05-2019, 03:53
CodeCracker CodeCracker is offline
VIP
 
Join Date: Jun 2011
Posts: 905
Rept. Given: 68
Rept. Rcvd 661 Times in 278 Posts
Thanks Given: 64
Thanks Rcvd at 3,821 Times in 717 Posts
CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699 CodeCracker Reputation: 500-699
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)