Computer Science, asked by akshay9929, 1 year ago

c++ program to check whether a number is positive or negative or zero​

Answers

Answered by mayanksharma789594
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