Printing Two Dimensional Arrays with for loops

I have been asked to create a program that will print a grid that looks like this:
0 1 2 3
1 2 3 4
2 3 4 5
3 4 5 6
And I must do it using for loops. This is the code I have at the moment but I am unsure if it works and I don't think it is complete PLEASE HELP!!