task

Consider a quadratic expression, say x2 – x ‐2. Describing where this quadratic is positive, involves describing a set of numbers that are either less than the smaller root (which is ‐1) or greater than the larger root (which is +2). Write a C++ Boolean expression that is true when this formula has positive values.



please give me solution of above task .
using if-else statement in c++
please give me solution of above task .

No.

Write some code and tell us where your issue is.
1
2
3
bool isPositive(int x) {
    ...
}


Go from there
Topic archived. No new replies allowed.