C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:注意事项:(1)把输出格式写对,还要数据类型写对(2)不一定非要递归,可以2!*3=3!;m*=i;即可,减少了很多运算参考代码:#include<stdio.h>int main(){ …… 题解列表 2018年04月02日 0 点赞 0 评论 441 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:注意事项:for和while区别这么大,能用for别用while,不然会超时参考代码:#include<stdio.h>int main(){ float a,b,c,s1=0,s2=…… 题解列表 2018年04月02日 0 点赞 0 评论 498 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.7 (C语言代码) 摘要:解题思路:注意事项:一个数的最大因子不会大于它的一半参考代码:#include<stdio.h>int main(){ int n,s=0,k=0,a[100]; scanf("%d",&…… 题解列表 2018年04月02日 0 点赞 0 评论 831 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.9 (C语言代码) 摘要:解题思路:注意事项:(1)scanf的格式不要错 %f %d(2) s要先加m,一开始肯定会先落下来(3)注意他这里说的是第N次落地弹起高度,和落地时的路程,不算上弹起的高度参考代码:#include…… 题解列表 2018年04月02日 0 点赞 0 评论 703 浏览 评分:0.0
个人想法,提交是正确的 摘要:#include<stdio.h>#include<math.h>int main(){ float a,b,c,p,q; scanf("%f %f %f",&a,&b,&c); float les…… 题解列表 2018年04月02日 1 点赞 0 评论 840 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.11 (C语言代码) 摘要:解题思路:注意事项:a/x1;x1不可以为0参考代码:#include<stdio.h>#include<math.h>int main(){ float a,x=1.0,x1=0; sc…… 题解列表 2018年04月02日 0 点赞 0 评论 605 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.4 (C语言代码) 摘要:解题思路:注意事项:flog=0只执行一次if语句参考代码:#include<stdio.h>int main(){ int a[10],b,i,flog=1; for(i=0;i<9;i…… 题解列表 2018年04月02日 0 点赞 0 评论 697 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){int a,b,c;scanf("%d,%d",&a,&b);c=a+b;printf("%d",c);}…… 题解列表 2018年04月02日 0 点赞 0 评论 659 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[100]; int i; gets(s); …… 题解列表 2018年04月02日 0 点赞 0 评论 1009 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100],b[100]; gets(a); …… 题解列表 2018年04月02日 0 点赞 0 评论 628 浏览 评分:0.0