int translate( char s[100])
{
int n = 0;
int size = Strlen(s);
for (int i = 0; i< size ; i++ )
{
if(s[i] >='a' && s[i] <= 'f')
n = n*16 +s[i] -'a' +10;
if(s[i] >=‘A' && s[i] <='F')
n = n*16 +s[i] -'A' +10;
if(s[i] >'0' && s[i]< = 9)
n = n*16 +s[i] -'0';
}
return n;
}