4
Contributors
3
Replies
20
Views
1 Month
Discussion Span
Last Post by Mridula_1
1

Is it a pyramid with inverted numbers or an inverted pyramid with numbers?
You're rather scarce with info explaining your problem.
You surely have tried to write some code.
Even if it does not work, show it to us we are used to that.
It's the only way your problem will get solved.

0

As you have not mentioned the full question yet and from your question it seems like you are trying these pattern programs for the first time. So, here is the trick to build code for any pyramid. You need to divide the pyramid into a matrix. Then build the logic keeping in mind that you need to have loops for rows, columns and spaces if you are doing a simple program of star pattern.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.