Trace this to figure out what the result will be, and then type it into MATLAB to verify the results
belongs to book: MATLAB: A Practical Introduction to Programming and Problem Solving|Stormy Attaway|Fourth Edition| Chapter number:5| Question number:19.5
All Answers
total answers (1)
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