fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main (void)
  4. {
  5. int num;
  6. scanf("%d",&num);
  7. printf("%d的十六進位是%x\n",num,num);
  8.  
  9. return 0;
  10.  
  11.  
  12. }
Success #stdin #stdout 0.01s 5280KB
stdin
458
stdout
458的十六進位是1ca