write a program script to solve the problem
情報
この質問は閉じられています。 編集または回答するには再度開いてください。
古いコメントを表示
Write an M-file to calculate the factorial function N!. Be sure to handle the special case of 0! Also, be sure to report an error if N is negative or not an integer. N! = 1 if N = 0 N! = N * (N-1) * (N-2) * … * 3 * 2 * 1 if N > 0
0 件のコメント
回答 (1 件)
Chad Greene
2015 年 10 月 29 日
0 投票
0 件のコメント
この質問は閉じられています。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!