/* Exercise: In the console output meet the following conditions of five digits equal to the million bit 10 bits equals thousands digit + 10 bit + thousand + million bit = Hundred Analysis: A: Five digits is the range B: decomposition of each five-digit number, 10, hundred, thousand, the data c: according to the requirements of the judgment can be */class ForDemo7 {public static void main (string[] args) {//Five digits tells us the range. for (int x = 10000; x < 100000; + +) {//decomposition of each five-digit, 10, hundred, thousand, million-digit data int ge = x% 10;int shi = x/10% 10;int Bai = X/10 /10;int Qian = x/10/10/10% 10;int wan = x/10/10/10/10% 10;//be judged as required if ((ge = = WAN) && (s hi = = Qian) && (ge + shi + qian + wan = = Bai)) {System.out.println (x);}}}
2.43 loop structure for statement practice palindrome number