fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n;
  7. cin >> n;
  8. int result = (n / 10) % 10;
  9. cout << result;
  10. return 0;
  11. }
Success #stdin #stdout 0s 4432KB
stdin
27
stdout
2