Hollow rhombus pattern

At compile and test time , output is getting right but while submitting code test case get failed.
This is my code - https://ide.codingblocks.com/s/664908

hi @siddhi_k one extra space is there in the beginning in each line
just do
number - i-1 in first for loop

Thank you. Error resolved.

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.