HW 01 - Simple C program

Write a program that:

Dont forget that you can use the “atoi” function to convert strings to ints!

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