Break down the program and make small tests out of it. Let's think of some tests you can apply to this...
1) Print out "A9". Write a program to do that, compile it, and run it.
2) Print out the first row. Write a program to do that, compile it, run it, and make sure it looks right. For this, you will need something to store that information (perhaps a string array?)
3) Print out two rows. In order to do this, your string array now has to have both a row and column... two dimensions. So you will first output something like array[0][0], array[0][1], array[0][2]... etc. for the first row, then when you get to the second row, array[1][0], array[1][1], etc. For this go around, don't worry about loops and just output them all by typing in the array values over and over. Compile your program, run it, and make sure it displays the right things.
4) Now make it display all 5 rows. You should be able to notice a pattern in what you did in the 3rd step. Use loop variables (such as array[row][col]) to display the information. Compile and run your program.
You can see more information on how to break things into steps and help getting unstuck on a blog post I recently wrote:
http://www.mycpptutor.com/blog/2015/03/31/how-to-get-unstuck-on-your-programming-assignment/
Good luck!