Pergunta de entrevista da empresa MediaTek

Write a C program to convert and hexadecimal no. to decimal.