Untitled

 avatar
unknown
c_cpp
a year ago
297 B
4
Indexable
#include <iostream>
#include <algorithm> 

int main()
{
    double a, b, c;
    std::cin >> a >> b >> c;
    
    if ((a + b + c) / 2 == std::max(std::max(a,b),c)) {
        std::cout << "Da, this is segment" << "\n";
    }
    else {
        std::cout << "No" << "\n";
    }
    
}
Editor is loading...
Leave a Comment