output of the following MATLAB code.
Posted in matlab
No comments
Friday, August 1, 2014 By Anonymous
Q#6:
What will be the output of the following MATLAB code.
S = 1; n = 1;
while S+(n+1)^2 < 100
n = n+1; S = S + n^2;
end
[n,S]
Solution:
Here below is the output
%Output displayed
Related posts
Share this post
0 comments: