Advertisement
Josif_tepe

Untitled

Jan 18th, 2024
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int a, b;
  6.     cin >> a;
  7.     cin >> b;
  8.    
  9.     int sredna_cifra_a = (a / 10) % 10;
  10.     int sredna_cifra_b = (b / 10) % 10;
  11.    
  12.     cout << sredna_cifra_a + sredna_cifra_b << endl;
  13.    
  14.     return 0;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement