#include <stdio.h> int main() { int a, b; scanf("%d",&a); b=a/10%10;//直接除和取余就好啦 printf("%d\n",b); return 0; }