I have the following code from my textbook:
ires=2;while ires<=200 ires=ires^2;end
I estimate that the above code will run 14 times and give me a final value of 225 for variable ires. When I run the code in MatLab, however, I get 15 runs and a final value of 256 for variable ires. Could anyone provide some insight as to why this may be the case?
Best Answer