fork download
  1. #include<iostream>
  2. #include<iomanip>
  3. using namespace std;
  4. int main()
  5. {
  6. long long n ,m , k;
  7. cin >>n>>m;
  8. k= (m % 10)+(n % 10);
  9. cout<<k<<endl;
  10. }
Success #stdin #stdout 0.01s 5516KB
stdin
Standard input is empty
stdout
6