Integer is positive or negative

Description:

Program to check whether an integer is positive or negative Test Case 1 Input (stdin) 33 Expected Output You entered a positive integer Test Case 2 Input (stdin) -5 Expected Output You entered a negative integer

Program :

#include <iostream>

using namespace std;

int main()

{

int a;

  cin>>a;

  if(a>0)

  cout<<"You entered a positive integer";

  else

    cout<<"You entered a negative integer";

return 0;

}