简单的a+b (C语言代码) 摘要:解题思路:多组数据相加,需要不停的接受数据并计算和。这里用到scanf的返回值加while循环注意事项:参考代码:#include <stdio.h>int main(){ int a,b; whil…… 题解列表 2017年10月06日 0 点赞 0 评论 879 浏览 评分:0.0
用筛法求之N内的素数。 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; scanf("%d",&n); for(i=n;i>1;i--) …… 题解列表 2017年10月06日 1 点赞 0 评论 908 浏览 评分:0.0
剪刀石头布 (C语言代码) 摘要:解题思路:利用减法,列举几种情况下的结果注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d%d",&a,&b); c=a-b; i…… 题解列表 2017年10月06日 0 点赞 0 评论 1002 浏览 评分:0.0
【绝对值排序】 (C语言代码) 摘要:解题思路:注意事项:该题测试有问题,系统是测试到EOF则停止,不是测试到0退出,大家可以自己测试一下。参考代码:#include<stdio.h>#include<math.h> void sort_…… 题解列表 2017年10月06日 0 点赞 0 评论 1113 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,sum,c,d; for(a=100;a<1000;a++) { b=a%10; …… 题解列表 2017年10月07日 0 点赞 1 评论 440 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,d; float b,c,e,sum; scanf("%d",&a); b=2.0,c=1.0…… 题解列表 2017年10月07日 0 点赞 0 评论 711 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double m,sum,a,n;scanf("%lf %lf",&m,&n);sum=m;for(a=1.0;…… 题解列表 2017年10月07日 0 点赞 0 评论 999 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:解题思路:通过判断每一个数的因子的个数。当一个大于一的数x,在[1,x]内的因数的个数大于二时,这个数就是质数。注意事项:参考代码:#include<stdio.h> int main() { …… 题解列表 2017年10月07日 0 点赞 1 评论 996 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fan(int a){ int k; if(a<2) return 0; for(k=…… 题解列表 2017年10月07日 0 点赞 0 评论 934 浏览 评分:0.0
C语言考试练习题_一元二次方程 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float a,b,c; float m,n; scan…… 题解列表 2017年10月07日 0 点赞 0 评论 810 浏览 评分:0.0