#include<iostream>
using namespace std;
class check
{
    int x;
    public:
    void input();
    void output();
};
void check::input()
{
    cout<<"Enter a number:"<<endl;
    cin>>x;
}
void check::output()
{
    if(x==0)
    cout<<"The given number is 0"<<endl;
    else
    cout<<"The given number is not a 0"<<endl;
}
int main()
{
    check a;
    a.input();
    a.output();
    return 0;
  
}

Embed on website

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