HW008
Math 2984 - Fall 2017
Intro to Mathematical Problem Solving


TASK: Write a script which prints out a table of integers I, squares, and square roots, for integers from 0 through 10, using a FOR statement.


COMMENT: Each line of the table will be created by MATLAB's fprintf() statement, so that the values of I, I squared, and the square root of I all appear on the same line, as in:

        4  16  2.0
      


INSTRUCTIONS:

        Use the MATLAB for() statement to begin and end a loop.

          For readability, statements inside the for() loop should
          be indented two spaces.

        Your fprintf() statement might be something like:
          fprintf ( '%d  %d  %f\n', integer variable, integer variable, real variable );      
      


SUBMIT: Your work should be stored in a script file called "hw008.m". Your script file should begin with at least three comment lines:

        % hw008.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.