i need a program to convert hexa decimal number to decimal number, a very simple program without using %x i have been trying to come up with a logic but couldnt do so, i wrote a program using string to take input
and then using if else conditons to do the maths like this
and continue using such if else condition from 0-9 and then A-F which represents number bigger than 9. but i get an overflow error, so i am stuck. please anyone who can write a simple program i will be very thankful. and yeah write it in c language, thanks a lot.