Welcome To Home of Information

output of the following MATLAB code.

Posted in
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

0 comments:

About the Author

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque volutpat volutpat nibh nec posuere. Donec auctor arcut pretium consequat.

Proudly Powered by Blogger.