摘要:
输入: 请输入数时用空格隔开输入你要判断是否是回文的个数: 1 5 9 9 5 1 输出: 您输入的是回文 1 #include"stdio.h" 2 #define N 6 //通过更改 N 的值,可以改变输入的数的个数 3 //本题思想用数组的第一位与最后一位相比,然后依次第二与倒数第二。。。。 阅读全文
摘要:
1 #include"stdio.h" 2 #include"stdlib.h" 3 int main(void) 4 { 5 int n,a1,count=0,j;//count 用于角标的计数,j 控制 for 循环 6 int a[100]; 7 printf("Enter n:"); 8 s 阅读全文