Cody

# Problem 20. Summing digits

Solution 887878

Submitted on 9 May 2016 by Atsushi Ueno
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
a = 1; b = 2; out = sumDigits(a); assert(isequal(out, b))

2   Pass
a = 10; b = 7; out = sumDigits(a); assert(isequal(out, b))

3   Pass
a = 16; b = 25; out = sumDigits(a); assert(isequal(out, b))
{"ft_lang_label":"__label__en","ft_lang_prob":0.520119,"math_prob":0.9932138,"size":377,"snap":"2019-26-2019-30","text_gpt3_token_len":134,"char_repetition_ratio":0.14477211,"word_repetition_ratio":0.0882353,"special_character_ratio":0.40583554,"punctuation_ratio":0.15,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9704185,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-07-21T17:16:19Z\",\"WARC-Record-ID\":\"<urn:uuid:64208f7c-cebd-4399-adcc-2fd71e8f732e>\",\"Content-Length\":\"72816\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bd65201a-88bb-4408-ad2e-ae969a1644a0>\",\"WARC-Concurrent-To\":\"<urn:uuid:b563f2aa-63f2-4abe-a82b-0bb2c01f8b98>\",\"WARC-IP-Address\":\"104.118.179.86\",\"WARC-Target-URI\":\"https://nl.mathworks.com/matlabcentral/cody/problems/20-summing-digits/solutions/887878\",\"WARC-Payload-Digest\":\"sha1:OVE2RYB7EI6GTYX4A6Y44XBTOO6CHBAC\",\"WARC-Block-Digest\":\"sha1:7E5DMPYHLZKQUYSMBOIPE4QECYEGD2BT\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-30/CC-MAIN-2019-30_segments_1563195527089.77_warc_CC-MAIN-20190721164644-20190721190644-00266.warc.gz\"}"}