Computer Science, asked by Rohanmeher, 10 months ago

How to create a flowchart to input three side of a triangle and check triangle is isocells or not

Answers

Answered by pruthashinde
0

Isosceles triangle: An isosceles triangle is a triangle that has two sides of equal length.

Sample Solution:

C Code:

#include <stdio.h> int main() { int sidea, sideb, sidec; //are three sides of a triangle /* * Reads all sides of a triangle */ printf("Input three sides of triangle: "); scanf("%d %d %d", &sidea, &sideb, &sidec); if(sidea==sideb && sideb==sidec) //check whether all sides are equal { printf("This is an equilateral triangle.\n"); } else if(sidea==sideb || sidea==sidec || sideb==sidec) //check whether two sides are equal { printf("This is an isosceles triangle.\n"); } else //check whether no sides are equal { printf("This is a scalene triangle.\n"); } return 0;

.

.

.

.

.

.

.

follow me and mark as brainliest

Answered by ayushigautam0414
0

Answer: For python

def checkValidity(a, b, c):  

   

   if (a + b <= c) or (a + c <= b) or (b + c <= a) :

       return False

   else:

       return True        

 

a = 7

b = 10

c = 5

if checkValidity(a, b, c):

   print("Valid")  

else:

   print("Invalid")

Similar questions