#include int main(){ int x,y,z; while(1){ printf("Enter the lengths of three sides of a triangle:\t"); scanf("%d %d %d",&x,&y,&z); if(x>0&&y>0&&z>0){ if((x==y) && (y==z)){ printf("The triangle is equilateral\t"); } else if((x==z) || (y==z) || (x==y)){ printf("The triangle is isoseles\t"); } else{ printf("The triangle is scalene\t"); } break; } else{ printf("Sorry, sides of triangle cannot be 0 or negative value!\n"); } } return 0; }