fork(1) download
  1. #include <stdio.h>
  2.  
  3. void printhex(unsigned x)
  4. {
  5. if( x )
  6. printhex(x>>4),putchar("0123456789ABCDEF"[x&15]);
  7. }
  8.  
  9. int main(void) {
  10. unsigned u;
  11.  
  12. if( 1==scanf("%u",&u) )
  13. {
  14. if( u==0 )
  15. puts("0");
  16. else
  17. printhex(u);
  18. }
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 2056KB
stdin
65534
stdout
FFFE