следующий код:
Код: Выделить всё
bool isValidAge(int age) {
return (age >= 18 && age 0);
}
int main() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79000796/c-logical-operators-unexpected-behavior-with-nested-conditions[/url]