Console.WriteLine("123:");
string str =Console.ReadLine();
int namber =int.Parse(str);//Parse():string
Console,WriteLine("这个三位数是:"+namber);
int bai =namber/100;//计算百位数字
int shi =(namber/10)%10;//计算十位数字
int ge =((namber/1)%100)%10;//计算个位数字
Console,WriteLine("百位是:"+bai);
Console,WriteLine("十位是:"+shi);
Console,WriteLine(“个位是:”+ge);
Console,ReadKey();