如果我给出像 a=1234 这样的值,我只想打印最后两位数字 34..任何人都可以给我解决这个问题...
int a=1234; System.out.print(a);
number % 100结果是最后 2 位数字
number % 100
See