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