C语言编程题覆盖到的算法:
1、个人所得税计算;
2、求一组数的正、负数(或奇、偶数)的个数和平均值; 3、二维数组主、次对角线之和; 4、求素数(用函数实现); 5、级数有限项求和问题;
6、两个一维数组相加(用函数实现); 7、求最大、最小值; 8、判断闰年(用函数实现); 9、求水仙花数; 10、百钱百鸡;
11、求最大公约数、最小公倍数。 12、求回文数; 13、排序;
14、二维数组的转置; 15、递归函数求阶乘; 16、求斐波那契数列; 17、求和:a+aa+aaa+aaaa+....;
18、求符合条件的整数(如:是某个二位数的平方,个位、十位、百位数各不相同等);(包括素数,回文,完数,等等) 19、字符串加密;
20、统计字符串中字母和数字的个数;
/*1.个人所得税计算,以实验指导P24T5为标准*/ #include
int i,n;
double a,b,c; n=i/400;
printf(\ scanf(\
a=(i-800)*0.05,b=20+(i-1200)*0.08,c=84+(i-2000)*0.2; switch(n) {
}
case 0:
case 1:printf(\不需缴税\\n\ case 2:printf(\需交纳%lf元\\n\ case 3:
case 4:printf(\需交纳%lf元\\n\ default:printf(\需交纳%lf元\\n\ }
/*2. 求一组数的奇数个数,偶数个数和平均值 #include
int a[N];
int i,m=0,n=0,sum=0; double average;
printf(\ for(i=0;i scanf(\ if(a[i]%2==0) m++;
C语言操作题常考编程题库完整



