fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int a,b,c;
  5.  
  6. int main() {
  7.  
  8. cin>>a>>b>>c;
  9.  
  10. if (a <(b+c)) { if (b<(a+c)) { if (c<(a+b)) { cout<< "posso costruire un triangolo"<<endl;}
  11. else { cout<< "NON posso costruire un triangolo"<<endl;}}
  12. else { cout<< "NON posso costruire un triangolo"<<endl;}}
  13. else { cout<< "NON posso costruire un triangolo"<<endl;}
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5272KB
stdin
2 9 9
stdout
posso costruire un triangolo