➽ Program:-

#include<iostream>

using namespace std;

int main()

{

    int num;

    cout<<"Enter a Number: ";

    cin>>num;

   

    if(num >= 0)

       cout << num << " is a Positive number" << endl;

    else

       cout << num << " is a Negative number" << endl;

      

    return 0;

}

➽ Output:-

Enter a Number: 22
22 is a Positive number

Enter a Number: -4
-4 is a Negative number