include stdio int main int int int flag res scanf while res while if 1

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "stdio.h"
int main()
{
int x=0;
int y=0;
int flag, res=0;
scanf("%d %d", &x, &y);
while(x!=0 && y!=0) {
res = 0;
while(x!=0 && y!=0) {
if(x%10+y%10 +flag >9) {
res=res+1;
flag = 1;
}
else flag = 0;
x = x/10;
y = y/10;
}
if(res==0) printf("No carry operation.\n");
else if(res==1) printf("1 carry operation.\n");
else printf("%d carry operations.\n", res);
scanf("%d %d", &x, &y);
}
return 0;
}