/* PC June 18, 2007
   Testing if statements
*/

#include <stdio.h>

int main() 
{
  int num;

  printf("Please enter a number: ");
  scanf("%d", &num);

  // test and see whether num is greater than zero
  if (num > 0) 
    printf("Yes, it is greater than zero.\n");
  else if (num == 0) 
    printf("The number is zero.\n");
  else 
    printf("The number is less than zero.\n");
}
