TASK: Write a script which determines the sum of the squares of the integers from 100 to 200, using a FOR loop.
COMMENT: A sum is formed by adding many items to a single variable. To do this task, we must initialize a variable that will hold the sum, then generate the items using a for statement, and then print the result.
INSTRUCTIONS:
Use a variable "s" to hold the sum, and start it out at 0.
Your FOR loop can use the variable "i" as a counter.
Add the square of i to s.
End your loop
Print the final value of s.
We only want to see the value of s at the end, so remember how
to use a semicolon ";" so that MATLAB doesn't report the value
of s every time it is changed.
SUBMIT: Your work should be stored in a script file called "hw009.m". Your script file should begin with at least three comment lines:
% hw009.m
% YOUR NAME
% This script (describe what it does)
% Add any comments here that you care to make.
If this problem is part of an assignment, then submit it to Canvas.