Pattern mountain

can anyone tell me the logic of the pattern mountain

Hi @a19JE0093

For this ques you have to run a for loop n times and in that loop you have to create 3 loops … first loop for printing increasing sequence of numbers and second loop for generating spaces and last loop for generating decreasing sequence of number… and at the end of 3 loop loop you have to add endl so that we row is generated.

Still you are unable to get the logic then i can share you the basic code for better understanding but first give a try to this approach.

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.