Printing Patterns using for loops



I saw this in one article but I cannot understand why the coder has
used z--. I did it without z-- and it still works the same.

Please help.

Priyam


Trying to print the following pattern but...

$$$$$
$$$$5
$$$55
$$555
$5555



The Code
----------

void PrintPatternThree (int PatternSize)
{
int Row = 0;
int Col = 0;
int Temp = 0; // used to hold the new value of PatternSize for
evaluating

Temp = PatternSize;

for (Row = 1; Row <= PatternSize; Row++)
{
for (Col = 1; Col <=PatternSize; Col++)
{
if (Row <= Col)
printf ( "$" );
else
printf ( "%d", PatternSize);
} // end Col
Temp--;
printf ( "\n" );
} // end Row

return;

} /* end PrintPatternFour()

$$$$$
$$$$5
$$$55
$$555
$5555 */

.