5# Area of triangle | Scratch Coding Practices & challenging Tasks
YouTube Viewers YouTube Viewers
11.2K subscribers
1,352 views
0

 Published On Jul 30, 2022

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

show more

Share/Embed