Advertisement
Josif_tepe

Untitled

Oct 20th, 2023
954
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6.    
  7.     int n;
  8.     cin >> n;
  9.     int m;
  10.     cin >> m;
  11.    
  12.     int x = n / 10;
  13.     int y = m / 10;
  14.  
  15.     int l = x % 10;
  16.    
  17.     int u = y % 10;
  18.     cout << u + l << endl;
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement