C语言程序设计教程(第三版)课后习题6.5 (Java代码) 摘要:解题思路:注意事项:用java写这题的难题就是小数点,用DecimalFormat方法解决,如代码。参考代码:import java.text.DecimalFormat;import java.ut…… 题解列表 2017年08月12日 1 点赞 0 评论 2218 浏览 评分:0.0
C二级辅导-求偶数和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,sum; int a[100]; sum=0; scanf("%d",&…… 题解列表 2017年08月12日 1 点赞 0 评论 1291 浏览 评分:0.0
C二级辅导-同因查找 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; for(i=10;i<1000;i++) { if(i%2==0&…… 题解列表 2017年08月12日 0 点赞 0 评论 1106 浏览 评分:0.0
C二级辅导-计负均正 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,c,b; float x,sum; c=b=sum=0; int a[20]…… 题解列表 2017年08月12日 0 点赞 0 评论 1241 浏览 评分:0.0
C二级辅导-统计字符 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[1000]; int n,i,x1,x2,x3,x…… 题解列表 2017年08月12日 0 点赞 0 评论 1113 浏览 评分:0.0
C二级辅导-阶乘数列 (C语言代码) 摘要:解题思路:double型。。。。。。。。。%。2e输出注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double i,a,j,su…… 题解列表 2017年08月12日 0 点赞 0 评论 1417 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.8 (C语言代码) 摘要:解题思路:单个储存四位数的每一位数字进数组,加空格输出注意事项:字符形式定义字符形式输出参考代码: #include<stdio.h> int main() { ch…… 题解列表 2017年08月13日 0 点赞 0 评论 1505 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题9.2 (C语言代码) 摘要:解题思路:注意事项:#include<stdio.h>#define qiuyu(a,b) a%b;int main(){ int a,b,c; scanf("%d %d",&a,&b); c=q…… 题解列表 2017年08月13日 0 点赞 0 评论 1367 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.3 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int fun(int num) { int i,flag; for(i=2;i<num;i++) { if(n…… 题解列表 2017年08月13日 0 点赞 0 评论 2473 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.7 (C语言代码)scanf后面加个getchar(),收掉回车符,就可以用gets了 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,i; char a[100]; scanf("%d",&n); getc…… 题解列表 2017年08月13日 1 点赞 0 评论 1971 浏览 评分:0.0