以下程序可以把从键盘输入的十进制数(long型)以二到十六进制形式输出,请填空: #include void main() { char b[16]={'0','1','2','3','4','5','6','7','8','9','A','B','C','D','F'}; int c[64],d,i=0,base; long n; printf("enter a number:\n"); scanf("%ld",&n); printf("enter new base:\n"); scanf("%d",&base); do { c[i]= 1 ; i++; n=n/base; }while(n!=0); printf("transmite new base:\n"); for(--i;i>=0;--i) { d=c[i]; printf("%c",b 2 ); } }