include<stdio.h> include<string.h> int main () { char str[32];int i,len;unsigned int sum=0;unsigned int exp=1;gets(str);len=strlen(str);for(i=len-1; i>=0; i--) { if(i<len-1) exp*=2;if(str[i]=='1') sum+=exp;} printf("%u",sum);} ...