fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int num;
  5. printf ("Enter the number \n");
  6. scanf ("%d", &num);
  7.  
  8. printf ("Your number is: %d \n", num);
  9.  
  10. if (num < 0){
  11. printf ("The number is negative \n");
  12. }
  13. if (num > 0){
  14. printf ("The number is positive \n");
  15. }
  16. if (num == 0){
  17. printf ("The number is zero \n");
  18. }
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 5304KB
stdin
Standard input is empty
stdout
Enter the number 
Your number is: 32764 
The number is positive