Answer the question
In order to leave comments, you need to log in
Has the task been completed correctly?
int main() {
bool a = true, b = false;
int x = 7;
if (a || b && !( pow(x,2) < 12 || 2*x <= 5 ) && exp(x-1) > 7)
{
cout << "Z > 7";
}
return 0;
}
Answer the question
In order to leave comments, you need to log in
Confused conjunction with disjunction:
const int x = 7;
const bool A = true;
const bool B = false;
std::cout << std::boolalpha
<< A && B || !(x*x < 12 && 2*x <= 5) || std::exp(x-1) > 7
<< std::endl;
cout << "Z > 7";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question