fork download
  1. #include <stdio.h>
  2. void main()
  3. {
  4. int num;
  5. printf("Enter a number:");
  6. scanf("%d",&num);
  7. if(num<0){
  8. printf("number is negative");}
  9. else{
  10. printf("numer is positive");
  11. }
  12. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Enter a number:numer is positive