- 📖 given a height and base of a triangle calculate the area
I created this project to train my knowledge with the C language. With the project started, the user enters the values for the base of a triangle, then is asked for a height for this triangle. With all these values stored, the code calculates the area of a triangle (b * h / 2), and returns a message to the user saying: "the value of the area is: < value of the area >".
Before getting started, you need to have the following tools installed on your computer:
a C compiler like gcc.
Clone project:
$ git clone https://github.com/Ranchoneetoo26/triangle-area.git
Run code:
$ gcc main.c -o main
$ ./main
code will run in your cli.
Antonio Neto
Made of 💙 by Antonio Neto