#include <stdio.h> #include <string.h> char *change(int val, int base, char *retbuf) { static const char *str = "0123456789ABCDEF"; char *p; ]; p = buf+; *p = ; do { *--p = str[val % base]; } while( val /= base ); strcpy(retbuf,p); return retbuf; } int main() { ; ]; printf(, binbuf), i); ; != i) { sum++; i = i<<; printf(, binbuf), i); } printf("sum = %d\n", sum); }