#include <iostream>
using namespace std;
int main() {
int x;
cout<<"enter 1st side = "<<endl;
cin>>x;
int y;
cout<<"enter 2nd side = "<<endl;
cin>>y;
int z;
cout<<"enter 3rd side = "<<endl;
cin>>z;
if (x==0|| y==0 || z==0) { cout<<"cant form a triangle"<<endl;
}
else if (x+y>z || y+z>x || x+z>y) {
cout<<"given numbers can form a triangle"<<endl;
}
else cout<<"given numbers can't form a triangle";
}
To embed this project on your website, copy the following code and paste it into your website's HTML: