fork download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int X;
  6. printf("Enter X:");
  7. scanf("%d,&X");
  8.  
  9. if(X < 0)
  10. printf("|X| = %d \n",(-1)*X);
  11.  
  12. }
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
Enter X: