Answer
See code
Work Step by Step
def print(table):
$\quad$ i=1
$\quad$ while(i<=n):
$\quad$ $\quad$ j=1
$\quad$ $\quad$ while(j<=n):
$\quad$ $\quad$ $\quad$ print the entry at ith row and jth column
$\quad$ $\quad$ print newline
The upper while loop will run n times and the inner while loop will also run n times so a total of $n^{2}$ entries will be printed.