algorithms for producing n times multiplication table

Hi, everyone. I want to ask a question on write an algorithms to produce n times multiplication table(n less than or equal to 10). for example, if n is equal to 4 the table should appear as follow:
1 2 3 4
1 1 2 3 4
2 2 4 6 8
3 3 6 9 12
4 4 8 12 16

I really hope that you all can help me, thank you.
Two nested loops would do it.
Topic archived. No new replies allowed.