2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:#include<stdio.h> double fact(int n); double mypow(double x ,int n); int main() { int i,n; d…… 题解列表 2017年07月06日 0 点赞 0 评论 1263 浏览 评分:9.9
蛇行矩阵 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i=0,j,k,m; int a[100][100]={0}; scanf("%d",&n);…… 题解列表 2017年07月09日 0 点赞 0 评论 1516 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题11.8 (Java代码) 摘要:解题思路:注意事项:eclipse上运行无错,答案正确,但是在题目下运行显示运行错误所以本答案仅供参考参考代码:import java.util.HashSet;import java.util.It…… 题解列表 2017年07月13日 0 点赞 0 评论 1925 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> main() { int x,a,b,c; for(x=100;x<=999;x++) { a=x/100; b=x%1…… 题解列表 2017年07月13日 0 点赞 0 评论 1501 浏览 评分:9.9
交换Easy (Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { static Scanner sc = new…… 题解列表 2017年07月15日 0 点赞 0 评论 1680 浏览 评分:9.9
母牛的故事 (C语言代码) 摘要:解题思路:第n年:123456789fn头牛?123469131928在列出这个序列的过程中,应当能找出规律。 以n=6为例,fn=9头牛可以分解为6+3,其中6是上一年(第5年)的牛,3是新生的牛…… 题解列表 2017年07月16日 0 点赞 0 评论 1988 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.2 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#define MAX 100int main(){ int a,b,c,d; int i; char p[MAX]; a=b=c=d…… 题解列表 2017年07月17日 0 点赞 0 评论 1138 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int i,j,n; long s,sum=0; scanf("%d",&n); fo…… 题解列表 2017年07月17日 0 点赞 0 评论 1175 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题8.1 (C语言代码) 摘要:解题思路:最大公约数可以用迭代求出,最小公倍数要运用最大公约数。注意事项:从严格来说,两个数要区分大小的,不然会报错。尽管没有区分,还是能通过。参考代码:#include"stdio.h" int …… 题解列表 2017年07月17日 6 点赞 3 评论 2402 浏览 评分:9.9
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:题目没有难度,声明数组,利用循环给数组元素逐个赋值,然后比较出绝对值最大的数的同时把行,列赋值给声明的变量。最后输出注意事项:n行n列的矩阵是从1开始算的,不是0。ps:被这个坑了,怪我没理…… 题解列表 2017年07月18日 0 点赞 0 评论 1412 浏览 评分:9.9