Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In c language . Given the length of three edges of the triangle, please design a program to judge the type of a triangle. And

image text in transcribedIn c language

. Given the length of three edges of the triangle, please design a program to judge the type of a triangle. And the types are right triangle, equilateral triangle, isosceles triangle or ordinary triangle. Input: the non-negative lengths of edges of a set of triangles. Each line specifies the lengths of three edges of each triangle, and lengths are less than 100. -1 means the end of the input. Output: the types of triangles. The types are Right Triangle," Equilateral Triangle," Isosceles Tri- angle, Ordinary Triangle" or "Not a triangle

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions