Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x;
- cin >> x;
- int stotki = x / 100;
- int ostanato = x - (100 * stotki);
- int sredna_cifra = ostanato / 10;
- cout << sredna_cifra << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement