Hollow rhombus pattern 1

my code is running perfect,but it not get submitted

1 test case is wrong

https://ide.codingblocks.com/s/102617 here is code

Your code is correct. The test case is not passing because you’re printing β€˜x’ instead of β€˜*’ (asterisk)

Do mark the doubt as resolved if you have no further queries about this