Write a shell script called triangle that will print out a triangle made of stars. The script takes one argument which is the length of the "point". For instance, if I run your script:
triangle 4It should generate the following output:
* ** *** **** *** ** *Running
triangle 10should generate the following output:
* ** *** **** ***** ****** ******* ******** ********* ********** ********* ******** ******* ****** ***** **** *** ** *Include a function that will print out a specified number of stars on a line. This function takes one argument, which is the number of stars to print. Call this function to draw the triangle. Figure out how to do math in your SHELL for the counting.
BTW - this is called "ascii art"; very old-school :)