Computer Science, asked by aiswaryaselvam12, 6 hours ago

write a c++ program to find the given number is positive, negative, or zero​

Answers

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