Not Operator
Not Operator:
Program:#include < iostream >
using namespace std;
int main()
{
int num;
cout << "Enter the number please" << endl;
cin >> num;
if (num != 0)
{
cout << "Number is not zero" << endl;
}
else
{
cout << "Number is zero" << endl;
}
return 0;
}
Comments
Post a Comment