Pls help me to solve this question

Please help me to solve this question…

you have breakdown the pattern in diff parts
upper Half (i=0 to n-1)
print some space first(n-i)
then print num in increasing order from i+1 to 2i+1
then print num in dec order from 2
i to i+1

to print lower half reverse the upper half
start loop from n-2 till 0

check the reference code
Reference Code

i you have any doubt feel free to aks

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.