示例代码: #include <stdio.h> int main(void){ int n = 0 ; scanf("%d",&n); int i = 0 ; int a = 0 , b = 0 , c = 0 , d = 0 , e = 0 , f = 0; for (i = 10000 ; i < 1000000 ; i ++) { a = i/100000; b = i/10000%10; c = i/1000%10; d = i/100%10; e…
25 [程序 25 求回文数] 题目:一个 5 位数,判断它是不是回文数.即 12321 是回文数,个位与万位相同,十位与千位相同. package cskaoyan; public class cskaoyan25 { @org.junit.Test public void palindromic() { java.util.Scanner in = new java.util.Scanner(System.in); long number = in.nextLong(); String st…