Question: Given the following function q35, what will the outputs in the command window be? Output 1: (2 points) 35. >clear >> edit q35 5>q35(3) >2435(4)

Given the following function q35, what will the outputs in the command window be? Output 1: (2 points) 35. >clear >> edit q35 5>q35(3) >2435(4) Output 1) >q35(-2) >q35(5) (Output 2) function q35(n) persistent ent disp(n) if isempty(cnt) cnt-0; end if n>=1 cnt-cnt+n else Output 2: (2 points) cnt cnt-n; end disp(cnt)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
