for loop Table Generation

Enter Number of Rows: and columns: