#include <iostream>
using namespace std;

class positive
{
        int num;
        public:
            positive(int n)
            {
                num=n;
            }
            void checking();
};
void positive::checking()
{
    cout<<"\n----------------------------------";
    if(num==0)
        cout<<"\n"<<num<<" is Non-Positive & Non-Negative Number.";
    else if(num>0)
        cout<<"\n"<<num<<" is Positive Number.";
    else
        cout<<"\n"<<num<<" is Negative Number.";
    cout<<"\n----------------------------------";
}
int main()
{
    int num;
    cout<<"\n\nPositive or Negative Number checking.";
    cout<<"\n---------------------------------------";
    cout<<"\nEnter any one integer Number : ";
    cin>>num;
    positive p(num);
    p.checking();
    return 0;
}

Embed on website

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