namespace _014_練習3和4 {
? ? class Program {
? ? ? ? static void Main(string[] args)
? ? ? ? {
? ? ? ? ? ? //string str1 = Console.ReadLine();
? ? ? ? ? ? //int num1 = Convert.ToInt32(str1);
? ? ? ? ? ? //string str2 = Console.ReadLine();
? ? ? ? ? ? //int num2 = Convert.ToInt32(str2);
? ? ? ? ? ? //string str3 = Console.ReadLine();
? ? ? ? ? ? //int num3 = Convert.ToInt32(str3);
? ? ? ? ? ? //string str4 = Console.ReadLine();
? ? ? ? ? ? //int num4 = Convert.ToInt32(str4);
? ? ? ? ? ? //int res = num1*num2*num3*num4;
? ? ? ? ? ? //Console.WriteLine(res);
? ? ? ? ? ? string str = Console.ReadLine();
? ? ? ? ? ? int num = Convert.ToInt32(str);
? ? ? ? ? ? int ge = num%10;// 一個數(shù)字跟10求余得到是這個數(shù)字的個分位
? ? ? ? ? ? int shi = (num/10)%10;//一個數(shù)字跟10相除的話旅急,相當于去掉這個數(shù)字的個分位( xyz/10 = xy )
? ? ? ? ? ? int bai = num/100;
? ? ? ? ? ? Console.WriteLine(ge+""+shi+""+bai);
? ? ? ? ? ? Console.ReadKey();
? ? ? ? }
? ? }
}