Computer scienceProgramming languagesC++Operators and expressions

Logical operators

Find output

Report a typo

What will be the output of the following code?

#include <iostream>
using namespace std;

int main() {
    int x = 10, y = 20;
    if (x > 5 && y < 15) {
        cout << "Condition is true";
    } else {
        cout << "Condition is false";
    }
    return 0;
}
Select one option from the list

Create a free account to access the full topic