This type of print a diamond code has been done time and time again here on the forums.
Please do a quick search and you should find your answer.

You basically need a series of 'for loops'
...