Edited
The problem is I dont know how to make it like this
The code shows a fully starred diamond shape
I just want it to be a starred sided diamond (empty from inside)
So instead of printing asterisks everywhere, you'll only want to print 1 or 2 each row. You'll need to look at the parts of the loop that print the asterisks and edit them to only print the asterisks on the edges and print spaces in the center.
Well, I don't intend to do it for you. Look at the loops on 10-11 and 18-19; you only want to print out the first and last asterisk and otherwise print spaces.