#include"stdio.h"
#include"stdlib.h"
#include"string.h"
void main()
{
char *str1="f123ed26a";
char *str2[16]={"0000","0001","0010","0011","0100","0101","0110","0111","1000","1001","1010","1011","1100","1101","1110","1111"};
int i;
int index;
int len1=strlen(str1);
for(i=0;i<len1;i++)
{
if(str1[i]>='a')
{
index=10+(str1[i]-'a');
}
if(str1[i]<'a')
{
index=0+(str1[i]-'0');
}
printf("%s ",str2[index]);
}
printf("/n");
}
#include"stdlib.h"
#include"string.h"
void main()
{
char *str1="f123ed26a";
char *str2[16]={"0000","0001","0010","0011","0100","0101","0110","0111","1000","1001","1010","1011","1100","1101","1110","1111"};
int i;
int index;
int len1=strlen(str1);
for(i=0;i<len1;i++)
{
if(str1[i]>='a')
{
index=10+(str1[i]-'a');
}
if(str1[i]<'a')
{
index=0+(str1[i]-'0');
}
printf("%s ",str2[index]);
}
printf("/n");
}