各位大佬,这个题咋做啊?
#include <stdio.h>
int main()
{
int i=0;
char c;
scanf("%c",&c);
while(c>='c'&&c<='1')
i=i*2+c-'0';
}
printf("%d\n",i);
return 0;