Untitled
unknown
c_cpp
2 years ago
297 B
5
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