Ganesha's pattern code is not executing properly


my code is giving error. please look into it.

@Anku47
You were making an error in incrementing because of which there was an infinite loop. But you code was stiil ouputing the wrong pattern.

This is my code:

It is quite symmetrical and if you face any difficulty, please feel free to ask and revert back