write a c++ program to find the given number is positive, negative, or zero
Answers
Answered by
1
Answer:
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
English,
3 hours ago
Computer Science,
3 hours ago
History,
3 hours ago
Math,
6 hours ago
English,
8 months ago