I have a program that create an object that ask user to enter a number then the output is like this when the user enter '4':
1
22
333
4444
333
22
1
anyone can help me to give out an idea
Last edited on
There have been various posts recently around here where it was asked how to output a triangle of stars, eg:
*
**
***
****
***
**
*
I suggest looking around a bit and finding one of them. All you need to do is replace the * with the right
number, which is trivial.