C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:给5个变量5位上的数赋值看最大位来处理不同情况注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c,d,e,t; t=0; scanf(…… 题解列表 2017年11月17日 0 点赞 0 评论 699 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码#include <stdio.h>int main(){ int a,b,c,m,max; scanf("%d%d%d",&a,&b,&c); if(a>b) m=a; …… 题解列表 2017年11月17日 2 点赞 0 评论 957 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:注意换行参考代码:#include <stdio.h>int main(){ int a,b,sum; while(scanf("%d%d",&a,&b)==2) { sum=a…… 题解列表 2017年11月17日 1 点赞 0 评论 962 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;printf("请输入需要输入的两个数\n");scanf("%d%d\n",&a,&b);c…… 题解列表 2017年11月17日 1 点赞 1 评论 666 浏览 评分:0.0
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 (C语言代码) 摘要:#include<stdio.h> #include<math.h> int fun(int, int); int main() { int a, n; int i; …… 题解列表 2017年11月16日 2 点赞 0 评论 1145 浏览 评分:0.0
C语言训练-求PI* (C语言代码) 摘要:注意事项:题目中说当某一项的绝对值小于10-6为止,这个地方题有点坑啊,这一项并没有加入。注意这个就好了参考代码:#include<stdio.h> #include<math.h> int m…… 题解列表 2017年11月16日 0 点赞 1 评论 640 浏览 评分:0.0
核桃的数量 (C语言代码) 摘要:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); for(int x=a;;x++) { if((x%a==0…… 题解列表 2017年11月16日 2 点赞 0 评论 1257 浏览 评分:6.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言描述——递归算法) 摘要:解题思路:1.求阶层利用递归算法;2.求平方和可以代用“math.h”库函数,然后利用递归求解;3.要保证每一项的符号不同,利用pow(-1,n-1);注意事项:在main主函数中的for循环要理解是…… 题解列表 2017年11月16日 2 点赞 0 评论 1674 浏览 评分:6.0
C语言程序设计教程(第三版)课后习题11.1 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n,y,r,i; cin>>n>>y>>r; switch(…… 题解列表 2017年11月16日 0 点赞 0 评论 963 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.2 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <iomanip>#include <cmath>using namespace std;int main(){ …… 题解列表 2017年11月16日 0 点赞 0 评论 1079 浏览 评分:0.0