Help with a program

i want to write a program to display the following pattern:
*
**
***
****

or

****
***
**
*

or

****
***
**
*

or

*
**
***
****

can you please help me????
i found a lot of difficulty
thanks
Topic archived. No new replies allowed.