C++
#include <iostream>#include <vector>int main () { int a, b, c; std::cin >> a >> b >> c; std::vector list {a, b, c}; bool is_it_correct = std::find_if(list.begin(), list.end(), [](auto el){ return el > 0; }) != list.end() && std::find_if(list.begin(), list.end(), [](auto el){ return el < 0; }) != list.end(); if (is_it_correct) std::cout << "YES" << std::endl; else std::cout << "NO" << std::endl;}
var
a,b: real; // катеты
c: real; // гипотенуза
begin
write ('Введите длины катетов.');
readln (a,b);
c := sqrt(a*a+b*b);
writeln ('Гипотенуза равна:', c);
end.