5# Area of triangle | Scratch Coding Practices & challenging Tasks
HTML-код
- Опубликовано: 1 окт 2024
- 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
Good 👍
This is simple. what if you drew the triangle, recorded the points in variables, then find the area for a challenge. or else you don't know what the triangle looks like
❤️❤️❤️❤️
Thanks!
The Best