C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:if语句注意事项:参考代码:#include<stdio.h>main(){int x,y,z,h;printf("请输入A B C的数值:");scanf("%d%d%d",&x,&y,&…… 题解列表 2017年11月02日 0 点赞 0 评论 1255 浏览 评分:0.0
汽水瓶 (C语言代码) 摘要:解题思路:我是先列出10个数找出其中的规律然后用n/2直接出来的。注意事项:处理好输入0跳出输入这个点。参考代码:#include<stdio.h>int main(){ int a[100]; in…… 题解列表 2017年11月02日 0 点赞 0 评论 849 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){char a,b,c,d,e;a=getchar();b=getchar();c=getchar();d=getchar(…… 题解列表 2017年11月02日 0 点赞 0 评论 1001 浏览 评分:0.0
C二级辅导-温度转换 (C语言代码) 摘要:解题思路:按照公式求解即可注意事项:1.注意5/9要改写为5.0/9.0!2.定义f是,如果是float型,则输入输出格式是%f; 如果是double型,则输入输出格式…… 题解列表 2017年11月02日 1 点赞 0 评论 890 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:用if()…… else if()…… else……即可解决函数y与x的对应等式赋值问题。注意事项:按照题目要求输出要保留两位小数,则应该将变量x和y定义为float类型!参考代码:…… 题解列表 2017年11月02日 1 点赞 0 评论 1303 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double i,n,j=1,a=2.0,temp; double sum=0; scanf("%lf",&n…… 题解列表 2017年11月02日 0 点赞 0 评论 936 浏览 评分:0.0
【偶数求和】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n,m; int i,j,k,…… 题解列表 2017年11月03日 0 点赞 0 评论 1079 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.4 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int count=9; int nums[10]; int i,n,temp; for(i=0;i<9;i+…… 题解列表 2017年11月03日 0 点赞 0 评论 880 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题10.1 (C++代码) 摘要:解题思路:很简单的选择排序注意事项:其实方法还有很多参考代码:#include <iostream>#include <stdio.h>using namespace std;int main(){ …… 题解列表 2017年11月03日 1 点赞 0 评论 797 浏览 评分:0.0
【出圈】 (C++代码)简单循环 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; long Josephus(long,long,long); int main()…… 题解列表 2017年11月03日 0 点赞 0 评论 986 浏览 评分:0.0