fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int number;
  5.  
  6. printf("Enter any number: ");
  7. scanf("%d", &number);
  8.  
  9. if (number > 0)
  10. printf("%d is a positive number.\n", number);
  11. else if (number < 0)
  12. printf("%d is a negative number.\n", number);
  13. else
  14. printf("You entered zero.\n");
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Enter any number: 32766 is a positive number.