Question

Assume that the user enters the lengths: a, b, of three sides of a triangle. Prepare...

Assume that the user enters the lengths: a, b, of three sides of a triangle. Prepare an algorithm and a flowchart to find if the triangle is isosceles, equilateral, or scalene.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Algorithm : We check if all the three sides are equal, the triangle is equilateral and we terminate the program. If this is not true we check if a is not equals to b and b is not equals to c i.e. all three sides are different, the triangle is scalene and we terminate the program. If this is not true, the triangle is isosceles and the program ends.

Flowchart :

Solution START Enter a, b, c No a--b and a SC 2 LYES fint Equilatera Punt isosceles & No afab omd a fac YES Print Scalene

Please give an upvote if you liked my solution.

Thank you :)

Add a comment
Know the answer?
Add Answer to:
Assume that the user enters the lengths: a, b, of three sides of a triangle. Prepare...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT