Untitled

Anonymous
c_cpp
11/17/2023 4:46 PM
396 B
15
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