Search
Write a program that:
The example of the program behaviour when called as ./triangle 1
./triangle 1 * echo $? 1
The example of the program behaviour when called as ./triangle 2
./triangle 2 ** * echo $? 3
The example of the program behaviour when called as ./triangle 3
./triangle 3 *** ** * echo $? 6
The example of the program behaviour when called as ./triangle 4
./triangle 4 **** *** ** * echo $? 10