C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:利用上面一题求1-N内的素数一样的原理注意事项:这个实现的代码,只可以鉴别一个,如果想要输入多个数,要用while(scanf("%d",&x)!=EOF){....}用这个框架来实现。参考…… 题解列表 2017年07月12日 1 点赞 0 评论 1146 浏览 评分: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 评论 1154 浏览 评分: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 评论 1161 浏览 评分: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 评论 1460 浏览 评分: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 评论 1395 浏览 评分: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 评论 745 浏览 评分: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 评论 1248 浏览 评分: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 评论 1545 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[20][20]; int i,j; int n; scanf("%d",&n); for(i=1;i…… 题解列表 2017年07月13日 0 点赞 0 评论 1093 浏览 评分:0.0
2003年秋浙江省计算机等级考试二级C 编程题(1) (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void Aver(int[] ar…… 题解列表 2017年07月13日 0 点赞 0 评论 1680 浏览 评分:0.0