C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int x,a,b,c,d,e; scanf("%d",&x); if(x>0&&x<100000…… 题解列表 2017年07月12日 0 点赞 0 评论 1440 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int x,s; scanf("%d",&x); if(x>0 && x<=100000) { …… 题解列表 2017年07月12日 0 点赞 0 评论 1139 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:利用上面一题求1-N内的素数一样的原理注意事项:这个实现的代码,只可以鉴别一个,如果想要输入多个数,要用while(scanf("%d",&x)!=EOF){....}用这个框架来实现。参考…… 题解列表 2017年07月12日 1 点赞 0 评论 1057 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> main() { int n,a=2,m=0,sn=0; scanf("%d",&n); while(m<n) { sn…… 题解列表 2017年07月12日 0 点赞 0 评论 1042 浏览 评分:0.0
A+B for Input-Output Practice (II) (C语言代码) 摘要:#include <stdio.h>int main(){ int a,b,n; scanf("%d",&n); while (n--) { scanf("%d%d",&a,&b); printf…… 题解列表 2017年07月12日 0 点赞 0 评论 1088 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:#include <stdio.h>int main(){ int a,b ; while(scanf("%d %d",&a,&b)) { if (a==0&&b==0) brea…… 题解列表 2017年07月12日 1 点赞 0 评论 1384 浏览 评分:0.0
A+B for Input-Output Practice (V) (C语言代码) 摘要:#include <stdio.h>int main(){ int a,b,c,n; scanf("%d",&n); while((n--)&&scanf("%d",&a)) { c=0; …… 题解列表 2017年07月12日 0 点赞 0 评论 1290 浏览 评分:0.0
A+B for Input-Output Practice (VI) (C语言代码) 摘要:#include <stdio.h>int main(){ int i,a,num,sum; while(scanf("%d",&a)!=EOF) { sum=0; for(i=0;…… 题解列表 2017年07月12日 1 点赞 2 评论 702 浏览 评分:0.0
A+B for Input-Output Practice (VII) (C语言代码) 摘要:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d", &a, &b))printf("%d\n\n",a+b); re…… 题解列表 2017年07月12日 0 点赞 0 评论 1177 浏览 评分:0.0
字符逆序 (C语言代码) 摘要:#include<stdio.h>#include<string.h>int box(char a[100],char b[100]){ int i,j,k=0; j=strlen(a)…… 题解列表 2017年07月12日 0 点赞 0 评论 1424 浏览 评分:0.0