Q:

Trace this to figure out what the result will be, and then type it into MATLAB to verify the results

0

 Trace this to figure out what the result will be, and then type it into MATLAB to verify the results.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Ch5Ex19.m

count = 0;

number = 8;

while number > 3

 fprintf('number is %d\n', number)

 number = number - 2;

 count = count + 1;

end

fprintf('count is %d\n', count)

number is 8

number is 6

number is 4

count is 3

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now