Computer Science, asked by shreenivasmahesh, 5 hours ago

algorithm to input three sides of a triangle and print if it's scalene, scalene or equilateral​

Answers

Answered by shreyaPB
5

Answer:

Declare three sides of triangle. Step 2: Enter three sides at run time. Step 3: If side1 == side2 && side2 == side3 Go to step 6 Step 4: If side1 == side2 || side2 == side3 || side3 == side1 Go to Step 7 Step 5: Else Go to step 8 Step 6: Print the triangle is equilateral. ... Step 8: Print the triangle is scalene.

Answered by AnshuBhardwaj123
2

Explanation:

1. ask user for input ,sides of triangle as input

2. check by giving condition whether it is satisfying the condition or not

3. if its two side is equal print it as scalene triangle

4. elif check all the three sides and print it as equilateral triangle

Similar questions