Good...
I recommend using for loop instead of while, as you can initialize, condition and increment/decrement in the same line, moreover you can skip any or all part of it (i.e. initialize, condtion and inc/decrement)
thus for a programmer its more visible and clear to understand....
Try doing this pattern...
*
**
***
**
*

If you want i can give you lot of patterns to practice, which will help you improve your skills...
Have fun...