Spreadsheet Calculator A spreadsheet is a rectangular array of cells.
Cells contain data or expressions that can be evaluated to obtain data.
A simple spreadsheet is one in which data are integers and expressions are mixed sums and differences of integers and cell references. For any expression, if each cell that is referenced contains an integer, then the expression can be replaced by the integer to which the expression evaluates. You are to write a program which evaluates simple spreadsheets. Input Input consists of a sequence of simple spreadsheets. Each spreadsheet begins with a line specifying the number of rows and the number of columns.