Imagine that the user provides a width and height. Generate a two dimensional list such that each element is the sum of the (row plus
the column) plus the value in the preceding cell. Both rows and columns should start at zero in the top left cell. For example, if the user
enters the width and height of 2, your code would return the list [[0,1],[2,4]] .
Please do not use any Java code or libraries that we have not covered in class; this defeats the purpose of the
assessment. |