fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int number;
  6. printf("please enter number: ");
  7. scanf("%d",&number);
  8.  
  9. number>0 ? printf("the %d is absolute",number):-number;
  10.  
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
please enter number: the 32767 is absolute