Exercises Level 2 > Triangle example

Typo error in the area of the triangle (should be 100 instead of 50 with given examples values)
pull/192/head
Marin 4 years ago committed by GitHub
parent 07143be3b7
commit 4b4532ec2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -553,7 +553,7 @@ console.log(`${date}/${month}/${year} ${hours}:${minutes}`) // 4/1/2020 0:56
```sh
Enter base: 20
Enter height: 10
The area of the triangle is 50
The area of the triangle is 100
```
1. Write a script that prompt the user to enter side a, side b, and side c of the triangle and and calculate the perimeter of triangle (perimeter = a + b + c)

Loading…
Cancel
Save