Cody

# Problem 2114. Factorial Numbers

Solution 2185300

Submitted on 31 Mar 2020
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   Fail
n = 1; t = 1; assert(isequal(factorial(n),t))

Output argument "t" (and maybe others) not assigned during call to "factorial". Error in Test1 (line 3) assert(isequal(factorial(n),t))

2   Fail
n = 2; t = 2; assert(isequal(factorial(n),t))

Output argument "t" (and maybe others) not assigned during call to "factorial". Error in Test2 (line 3) assert(isequal(factorial(n),t))

3   Fail
n = 3; t = 6; assert(isequal(factorial (n),t))

Output argument "t" (and maybe others) not assigned during call to "factorial". Error in Test3 (line 3) assert(isequal(factorial (n),t))

4   Pass
n = 6; t = 720;

### 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.6446642,"math_prob":0.97701937,"size":530,"snap":"2021-04-2021-17","text_gpt3_token_len":168,"char_repetition_ratio":0.14068441,"word_repetition_ratio":0.0,"special_character_ratio":0.34528303,"punctuation_ratio":0.12727273,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9752522,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-01-20T03:53:15Z\",\"WARC-Record-ID\":\"<urn:uuid:a2ec5092-6325-4bed-bd2c-9cd5124444f2>\",\"Content-Length\":\"79954\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:21566512-12a5-47b6-9e08-b4f3ab8e2afd>\",\"WARC-Concurrent-To\":\"<urn:uuid:724fc4a1-c21b-4623-a656-94fcd90f25d7>\",\"WARC-IP-Address\":\"104.117.39.124\",\"WARC-Target-URI\":\"https://se.mathworks.com/matlabcentral/cody/problems/2114-factorial-numbers/solutions/2185300\",\"WARC-Payload-Digest\":\"sha1:EFE24BYKQDKX2RE4D5UUKHNIM3SAJLCW\",\"WARC-Block-Digest\":\"sha1:JI6OLGNBEFXSKDJB6CQ4KFFJJSQJ5X3L\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-04/CC-MAIN-2021-04_segments_1610703519883.54_warc_CC-MAIN-20210120023125-20210120053125-00524.warc.gz\"}"}