开发者

Question1454 Image description [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 11 hours ago.

Improve this question

enter image description here Create a function that takes three side lengths and determines if it can form a valid triangle. If it can, then indicate what kind of triangle (equilateral, isosceles, or scalene) it can make. Within this function, call another function that takes in the side lengths and returns the area of the triangle. If your triangle is valid,开发者_Go百科 it should state the triangle type as well as the area. You will need to return two things at once in this question. You can do this using the following syntax: return thing1, thing2.


For this you would have to check if the sides are: equal (makes equilateral), 2 equal one unequal (isosceles), and all uneven (scalene).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜