在C语言中,如何将16进制转为BCD码,如何表达答:include<stdio.h>char bcd[10][5]={"0000","0001","0010","0011","0100","0101","0110","0111","1000","1001"};void hex2bcd(int x){if(x>9)hex2bcd(x/10); printf("%s ",bcd[x%10]); }int main(){int n; printf("请输入一个十六进制数:"); scanf("%x",...