#include <iostream>
using namespace std; 
int main() {
    int num; 
    cout<<"Enter the number"<<endl; 
    cin>>num; 
    if(num>0)
    cout <<"The given number "<<num<<" is positive "<<endl; 
    else
    cout<<"The given number"<<num<<" is negative "<<endl; 
    
    return 0;
}

Embed on website

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