1 #include2 #include 3 using namespace std; 4 int main() 5 { 6 int z=0; 7 char fir[20]="0"; 8 int sec[20]={ 0},thi[20]={ 0},fo[21]={ 0}; 9 int len=0;10 cin>>fir;11 len=strlen(fir);12 int len2=len;13 for(int i=0;i 0;i--) 16 {17 thi[i]=2*sec[i]+z;18 z=thi[i]/10;19 thi[i]%=10;20 }21 int t=thi[i];22 23 thi[i]=2*sec[i]+z;24 if(t>=10) 25 {26 len2++;27 thi[i]=2*sec[i]+z;28 fo[0]=thi[i]/10 ;29 thi[i]%=10;30 for(int j=0;j