Modify your Assignment 8 program so that a function, printLine, is used to print each line in the
triangle. This function should accept a single parameter, the line number of the line to be printed.
Your main() program should contain only (and exactly) the following:
for (i=0; i<10; i++) /* Assignment #9 */
printLine(i); /* Assignment #9 */
Note: within the function printLine do not use “i” as the parameter name for the line number.