Question: Write a function Check that doesnt take any input. The function reads triangle.txt which includes three numbers(each line has one number). Assume these values are

Write a function Check that doesnt take any input. The function reads triangle.txt which includes three numbers(each line has one number). Assume these values are the side lengths of the triangle. The function should check the validity of the triangle and print whether the triangle is valid or not. If it is valid, the result should also indicate the type of triangle (equilateral, isosceles, or scalene). Here are some hints about triangles; * Triangle inequality only depends on the length of the sides. ** An equilateral triangle is a triangle in which all three sides are equal. A scalene triangle is a triangle that has three unequal sides. An isosceles triangle is a triangle with (at least) two equal sides

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!