Draw a flowchart to input three sides of a triangle and check whether the
triangle can be formed or not. If possible, check whether it is an 'Equilateral
Triangle', 'Isosceles Triangle' or a 'Scalene Triangle'.
Answers
Answered by
2
Answer:
Step 1: Start the program.
Step 2: Take three sides as input.
Step 3: Check if the sum of any two sides is equal to the third side.
Step 4: If false, a triangle cannot be formed, and stop the program.
Step 5: If true, check if all the three sides are equal.
Step 6: If yes, the triangle is an equilateral triangle.
Step 7: If no, check whether any two of the three sides are equal.
Step 8: If yes, the triangle is an isosceles triangle.
Step 9: If no, the triangle is a scalene triangle.
Step 10: End the program.
#SPJ3
Attachments:
Similar questions
Science,
5 months ago
Business Studies,
5 months ago
Computer Science,
5 months ago
Science,
11 months ago
Geography,
11 months ago
Math,
1 year ago
Biology,
1 year ago