Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 711 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 711 Bytes

Open-Lab-01.04 (3 XP)

Function that calculates area of a triangle from foundation and height.

  1. Fork this repository to your GitHub account.
  2. Open solution file in Visual Studio.
  3. Open file Triangle.cs
  4. Implement method Area(double foundation, double height) so that it returns calculated area of triangle.
  5. Run with CTRL+F5 to test it.
  6. If all tests are passed, commit&sync your repository.
  7. 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.