//Checks if the lengths entered can be sides of triangle #include bool trisides(float a,float b,float c); int main() { cout<<"First side length :"; float a; cin>>a; cout<<"Second side length :"; float b; cin>>b; cout<<"Second side length :"; float c; cin>>c; if(trisides(a,b,c)) cout<<"The lengths can form sides of a triangle"; else cout<<"The lengths cannot form sides of a triangle"<c && (b+c)>a && (c+a)>b ); }