Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int checkTriangle( int a, int b, int c)
  4. {
  5. if( (a+b)>=c && (b+c)>=a && (c+a)>=b ){
  6.  
  7. return true;}
  8. else
  9.  
  10. { return false;
  11. }
  12. }
  13.  
  14. int main()
  15. {
  16. std::cout<<checkTriangle(10,5,6);
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement