Computer Science, asked by monuamitcool5292, 1 year ago

Consider a simple program to classify a triangle

Answers

Answered by Anonymous
8
ANSWER
.........



# include "conio.h"


#include "stdio.h"  


void main()


{


int x,y,z;



printf.



("\nEnter the sides of a triangle");



scanf


("%d %d %d",&x,&y,&z); if((x==y) && (y==z))






{






printf

*"\nThe triangle is equilateral");



}



else if((x==z) || (y==z) || (x==y))



{



printf

("\nThe triangle is isoseles");


}



else { printf("\nThe triangle is scalene");


{



getch();




}
Similar questions