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