Area of a Triangle
Write a code that takes the base and height of a triangle and return its area.
Formula
A = 1/2 × b × h
Examples
triArea(3, 2) ➞ 3 .
triArea(7, 4) ➞ 14
triArea(10, 10) ➞ 50
Download
0 formats
No download links available.
5# Area of triangle | Scratch Coding Practices & challenging Tasks | NatokHD