Untitled

mail@pastecode.io avatar
unknown
c_cpp
16 days ago
297 B
1
Indexable
Never
#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";
    }
    
}
Leave a Comment