Here, I wrote below code to parse hex string and convert it decimal format. In the scanf I add char type variable to store what parsed by format sp
scanf
char