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!