How to proceed further?

I’m stuck here in this code and I don’t understand how could we make a reflection of the same in this code can someone please explain?

@lakshay2311
hello lakshay,
hint -
a) your each row will contain some number ,some spaces.
b) for ith row first you need to print i numbers from 1 to i
c) then some spaces (figure out how many)
d) then number from i to 1;

But how to remove the number which is common in last row? can you be more specific.

handle last row separately which is basically 1 to n then n-1 to 1

Sorry, I’m not getting it. Do we have any video or anything for the explaination in our course?

its easy bro take pen and paper and find out whats going on.
let me clear some more points by asking u some questions.
how many elements will each row contain?

less than or equal to n

for last row how many ?

Okay Okay I got it. I did a blunder sorry, man. Thankyou for your help and much appreciated.
:smile:

1 Like

no issue ,please mark ur doubt resolved

1 Like