Pattern DoubleSidedArrow

this type problem i did not know , how can i solve it
all the problem this and below .i am not able solving it

@khemchandrs for this type of problems we need to break the pattern in smaller parts. For eg, instead of finding the logic for bigger pattern, we need to see what kind of things are being repeated in a single line, then we can generalize that logic for each and every line. Like in DOUBLE SIDED ARROW, the generalized logic for each line is :

  1. print some spaces.
  2. print number from to i to 1, i being the line number.
  3. print some more spaces.
  4. print number from 1 to i, i, again being the line number.
    After finding the logic for one line we just have to put that in a loop, so that it will work for each and every line.