给定一个三位数 n,要求把十位上的数字赋值给整型变量x,可以使用下列哪种方法?( )
int x = n / 100;
int x = n % 100 / 10;
int x = n / 10;
int x = n % 10;