#include <iostream>
using namespace std;


int main() {

    int num_1 = -27;

    if (num_1 >= -50 && num_1 <= 150)
    {
        cout << "The number is valid.";
    }    
    
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: