usingnamespacestd; intmain() { unsignedinta, b; while (scanf("%u%u", &a, &b) ==2&&!(a==0&&b==0)) { intcarry=0; intcount=0; inttemp; while (a&&b) { temp= (a%10) + (b%10) +carry; carry=temp/10; count+= (carry?1 : 0); a/=10; b/=10; } if (a&&!b) { while (a&&carry) { temp= (a%10) +carry; carry=temp/10; count+= (carry?1 : 0); a/=10; } } elseif (!a&&b) { while (b&&carry) { temp= (b%10) +carry; carry=temp/10; count+= (carry?1 : 0); b/=10; } } if (!count) { printf("No carry operation./n"); } elseif (count==1) { printf("1 carry operation./n"); } else { printf("%d carry operations./n", count); } } return0; }