Function that calculates area of a triangle from foundation and height.
- Fork this repository to your GitHub account.
- Open solution file in Visual Studio.
- Open file
Triangle.cs
- Implement method
Area(double foundation, double height)
so that it returns calculated area of triangle. - Run with
CTRL+F5
to test it. - If all tests are passed, commit&sync your repository.
- Send link to your repository for Lab Master (in #slack) to check it.
Hint:
- Area of triangle is equal to half of product foundation and height related to the side.
- Obsah trojuholníka sa rovná jednej polovici súčinu dĺžky strany trojuholníka a výšky prislúchajúcej k tejto strane.