Question: I need help with this matlab assignment. It is running forever and not printing an answer. The code in the picture is supposed to be

 I need help with this matlab assignment. It is running forever
and not printing an answer. The code in the picture is supposed
to be debugged. I know that cnt+1 needs to change to cnt=cnt+1
I need help with this matlab assignment. It is running forever and not printing an answer. The code in the picture is supposed to be debugged.
I know that cnt+1 needs to change to cnt=cnt+1
I dont think the s is needed for the input
I think it should be mod(M,10)
I think it should be M=floor(M/10);
Above are the corrections I think should happen, and I have already tried, but I am missing something. Please help!

% Lowest multiple with 93 and 03 clc: clear: 3-N input ('Enter a positive whole number N: , 's) 4- "cnt = 1; 5- while true 7-? MN*cnt; while M >= 1 remainder -mod (10, M); if remainder9 1I remainder 0 10 - continue: else floor (M+10) ; 12- 13 - M = end end if MK 1 15 break; 17 18 19? 20- end cnt+i: end fprint f("Lowebt t multiple with only 9a and 0s: sdn,N) Command Window Enter a positive whole number N: s 2 continue: ?>> fxi

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!