the code is printing the correct pattern for all odd integers but the pattern for even integers is not shown in question not passing test case
Diamond pattern not passing test case
hey did you passd that test case
Give the question link…
question: https://hack.codingblocks.com/contests/c/255/49
Answer: https://ide.codingblocks.com/#/s/22521
In this question you just have to print the pattern as given in the question.
You don’t need to take any input from the user.
So you just need to print the given pattern of 9 rows.
So instead of taking input, just print it for 9.
Thanks it worked !!!