Cody

# Problem 8. Add two numbers

Solution 596715

Submitted on 16 Mar 2015 by Wang Yunhe
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; c_correct = 3; assert(isequal(add_two_numbers(a,b),c_correct))

2   Pass
%% a = 17; b = 2; c_correct = 19; assert(isequal(add_two_numbers(a,b),c_correct))

3   Pass
%% a = -5; b = 2; c_correct = -3; assert(isequal(add_two_numbers(a,b),c_correct))

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
{"ft_lang_label":"__label__en","ft_lang_prob":0.5613362,"math_prob":0.98909396,"size":566,"snap":"2020-45-2020-50","text_gpt3_token_len":170,"char_repetition_ratio":0.14590748,"word_repetition_ratio":0.035714287,"special_character_ratio":0.34275618,"punctuation_ratio":0.16190477,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9930324,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-11-24T01:21:10Z\",\"WARC-Record-ID\":\"<urn:uuid:a39e00fb-d4ed-4a31-85f5-ab7b611b2c0c>\",\"Content-Length\":\"79921\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:f83e2ab8-85b8-471d-8483-b40cba53fb4e>\",\"WARC-Concurrent-To\":\"<urn:uuid:fcbb218b-e731-4e74-bca3-0c82271ca358>\",\"WARC-IP-Address\":\"23.212.144.59\",\"WARC-Target-URI\":\"https://it.mathworks.com/matlabcentral/cody/problems/8-add-two-numbers/solutions/596715\",\"WARC-Payload-Digest\":\"sha1:6Q463YF62F237EDC4M7YQJUEKWQFZEFB\",\"WARC-Block-Digest\":\"sha1:KECLATCK7BEUYECOWXSB6SYITMBWPHWP\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141169606.2_warc_CC-MAIN-20201124000351-20201124030351-00398.warc.gz\"}"}