Question: Read the given MATLAB codes, answer the following three questions: ele clear % get n=mput('entern:); if no disp'errors must be non negative!). elseif round(n) =n

Read the given MATLAB codes, answer the following three questions: ele clear % get n=mput('entern:"); if no disp'errors must be non negative!). elseif round(n) =n displerror--n must be an integer!'); else ifn=0 fact=1 else fact=1. for ilin fact=fact is end end disp([int2str(n)." =" int2str(fact)); end (1) if n = -4 write down the output. (2) if n = 0.4 write down the output (3) if n = 4 write down the output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
