#include <iostream>
using namespace std;
class check
{
int a;
public:
void get();
void put();
};
void check::get()
{
cout<<"Enter a number:"<<endl;
cin>>a;
}
void check::put()
{
if(a>0)
cout<<a<<" is POSITIVE number"<<endl;
else
cout<<a<<" is NEGATIVE number"<<endl;
}
int main()
{
cout<<"CHECKING POSITIVE OR NEGATIVE"<<endl;
check x;
x.get();
x.put();
}
To embed this project on your website, copy the following code and paste it into your website's HTML: