Posted in Blog, C++, Training Courses
Education, Tools and Services
#include<iostream>
using namespace std;
int main()
{
int num;
cout << "Enter any non-zero Number : ";
cin >> num;
if (num > 0)
{
cout << "Number is positive";
}
else
{
cout << "Number is negative";
}
return 0;
}
_______________________________OUPUT______________________________
Enter any non-zero Number : -9
Number is negative
Copyright © 2021 - - - - - - Designed By: Softnic WebSolutions