Regarding the code

can i get the code of this pattern? i tried doing it but was unable to do it

@pmschhabra We cannot directly share the code. I am telling you the approach:
Use an outer for-loop to keep track of rows of the pattern

  1. Inside it, use three for loops:
  2. 2.1. First for the space
    2.2. Second for the increasing sequence of each row
    2.3. third for the decreasing sequence.
    Try to write a code. Share your code if you face any issue.

what condition shall i write in the 3rd for loop?

@pmschhabra https://ide.codingblocks.com/s/143180
Follow this.
If you would observe the sample output carefully,each element was separated by a tab.
Dry run the code with the sample case for more clarity in your understanding.

the code is to complicated

@pmschhabra https://www.programiz.com/cpp-programming/examples/pyramid-pattern
Refer example 6 and 7 from this article.

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.