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