Um..........
I could give you an answer but it must be better that you do the assignment by yourself, as I mentioned before, could you try to establish the relationship between the following two nested loop?
for ( int y = 1; y < 6; y++ )
for ( int x = 5; x > 0; x-- )
I give you another example then you can convert the idea to get the answer from the original question
Do you know how to print the following
pattern?
*
**
***
****
*****
If you know, then you can solve your question successfully.
The relationship is x=y in the above example. Of course, you need to convert your code from the starting point x=1 to x=5 and y=x.........
[ November 07, 2004: Message edited by: siu chung man ]