periksa apakah angka positif atau negatif di CPP

// positive negative or zero

#include <iostream>
using namespace std;

int main()
{
    int num;

    cout<< "Enter the number: ";
    cin >> num;

    if(num>0)
        cout<< "Positive";
    else if (num<0)
        cout<< "Negative";
    else
        cout<< "Zero";

    return 0;
}
Sleep deprived