Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- int main()
- {
- float a,b,c;
- std::cout << "Please give the a value: ";
- std::cin>>a;
- std::cout << "Please give the b value: ";
- std::cin>>b;
- std::cout << "Please give the b value: ";
- std::cin>>c;
- if(a < b+c && b < a+c && c < a+b)
- {
- std::cout << "Triangle can be constructed.";
- }
- else
- {
- std::cout << "Triangle can NOT be constructed.";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement