// ex_ch6_2.c
#include <stdio.h>

const char SYMBOL = '$';

int main(void)
{
	for (int in_row = 1; in_row <= 5; in_row++)
	{
		/* iterate through the number of symbols that should be displayed
		on the line */
		for (int current = 1; current <= in_row; current++)
		{
			// print the symbol on the line
			printf("%c", SYMBOL);
		}
		// line finished - print newline
		printf("\n");
	}
	// done: bye!
	return 0;
}