编程取十位(编程中怎么取个位数) 1、int tenPlace = n 10 % 10int hundredPlace = n 100 % 10int thousandPlace = n 1000 % 10printfquot个位%d\n十位%d\n百位%d\n千位%d\nquot, unitPlace, tenPlace, hun...