Advertisement
Josif_tepe

Untitled

Jan 17th, 2024
935
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.     int x;
  6.     cin >> x;
  7.    
  8.     int stotki = x / 100;
  9.     int ostanato = x - (100 * stotki);
  10.     int sredna_cifra = ostanato / 10;
  11.    
  12.     cout << sredna_cifra << endl;
  13.     return 0;
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement