c++ program to check whether a number is positive or negative or zero
Answers
Answered by
5
Explanation:
#include<iostream>
void main ()
{
int num;
cout << "Enter the number to be checked : ";
cin >> num;
if (num >= 0)
cout << num << " is a positive number.";
else
cout << num << " is a negative number.";
return 0;
}
Similar questions
Math,
6 months ago
English,
6 months ago
Computer Science,
6 months ago
Math,
1 year ago
Math,
1 year ago