I have a code to calculate the isosceles triangle area. The leg length is 5 and the height is 4 to test my code. However, in the example that also uses the same value the answer is 12 but I keep getting 10. I'm unsure of what's wrong with the calculation. I'm guessing the leg length and height are different from the side length not sure how to word it. Help would be appreciated thank you for your time!
Here is my code for the calculation: