question:https://hack.codingblocks.com/contests/c/509/173
answer:https://ide.codingblocks.com/#/s/24043
1/4 passed
Pattern Rhombus
Your code is printing only n rows. But try running sample case. It would produce wrong answer.
Try it out yourself once again.