write a program script to solve the problem
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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
Antworten (1)
Chad Greene
am 29 Okt. 2015
0 Stimmen
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!