Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- long long a, b, c;
- int main()
- {
- cin >> a >> b >> c;
- if((a == b && a == c && b == c) && ((a + b > c) && (b + c > a) && (a + c > b)))
- {
- cout << "equilateral";
- }
- else if(((a == b) || (a == c) || (b == c)) && ((a + b > c) && (a + c > b) && (b + c > a)))
- {
- cout << "isosceles";
- }
- else if((a != b && a != c && b != c) && ((a + b > c) && (b + c > a) && (a + c > b)))
- {
- cout << "versatile";
- }
- else
- {
- cout << "invalid";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement