''' Name: Computing ID: Purpose: demonstrate nested loop abilities Problem: Get an integer n from the user and then print an n-by-n grid of one-digit numbers, where the digit in the r-th row, c-th column is the the last digit of the product r x c ''' # get dimension of the digit box reply = input( "Enter integer: " ) n = int( reply ) # print an n-by-n grid one row at a time. for r in range( 1, n + 1 ) : # handle printing of the row r entries for the digit box ... # finish processing of row ...