1 #include <iostream> 2 using namespace std; 3 int main(void){ 4 int a,b; 5 while(~scanf("%d%d",&a,&b)) 6 { 7 cout << (a+b)%10 << endl; 8 } 9 return 0; 10 }
1 #include <iostream> 2 using namespace std; 3 int main(void){ 4 int a,b; 5 while(~scanf("%d%d",&a,&b)) 6 { 7 cout << (a+b)%10 << endl; 8 } 9 return 0; 10 }