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