fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int i;
  6. int k;
  7. scanf("%d",&i);
  8. k=(i>0)? i:-i;
  9. printf("%d\n",k);
  10. return 0;
  11. }
  12.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
32764