Do this:
printf("0%x \n", 10);

But if it's greater than decimal 16 ( hex 10) then the 0%x is not needed.