Mirror star pattern(pattern 5)

Take N (number of rows - only odd numbers allowed), print the following pattern (for N = 5).
0<N<10
assume 1 = ’ ’ and 2 = ‘*’

111121111

112121211

212121212

112121211

111121111

Input Format
Constraints
0 < N < 10 (only odd numbers allowed)

ignore the gap between 2 rows.
using c++

hi @vishnuchopra58_67b7b96e3108c15e please share the code on ide.codingblocks.com
write save and share the url of the page

hi @vishnuchopra58_67b7b96e3108c15e,

Thank you!!!

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.