Untitled
#include <iostream> void isTriangleSimple(double a, double b, double c) { if ((a+b+c) / 2 == std::max(std::max(a, b), c)) { std::cout << "It isnt s1mple"; } else { std::cout << "Its s1mple"; } } int main() { double a, b, c; std::cin >> a >> b >> c; isTriangleSimple(a, b, c); }
Leave a Comment