C语言程序设计教程(第三版)课后习题6.11 (C语言代码) 摘要:迭代法求平方根:https://jingyan.baidu.com/article/f79b7cb31082079144023ebb.html几种其他解题思路:1.利用do-while语句 do …… 题解列表 2018年02月24日 0 点赞 0 评论 870 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:#include<stdio.h> int main() { int a,b,c,d; scanf("%d%d%d",&a,&b,&c); d=a>b?(a>c?a:c):(b<c?c…… 题解列表 2018年02月24日 2 点赞 0 评论 1130 浏览 评分:8.0
WU-数字整除 (C++代码) 摘要:#include<iostream> using namespace std; int main() { char str[10101]; while(cin>>str) { …… 题解列表 2018年02月24日 6 点赞 0 评论 1990 浏览 评分:7.3
WU-C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:#include<stdio.h> int main() { int grade; scanf("%d",&grade); switch(grade/10) { case 10…… 题解列表 2018年02月24日 2 点赞 0 评论 1224 浏览 评分:0.0
WU-C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:#include<stdio.h> int main() { int x,y; scanf("%d",&x); if(x<1) y=x; else if(x<10) y…… 题解列表 2018年02月24日 6 点赞 2 评论 1065 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题7.1 (C语言代码) 摘要:参考代码1:(只取了中间部分)for( i = 2 ; i <= input ; i++) { int swtich = 0; for(int j = i -1 ; j >1 ;…… 题解列表 2018年02月24日 0 点赞 0 评论 2396 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.8 (C语言代码) 摘要:解题思路:注意事项:注意sum和那两个分子分母都是要double参考代码:#include<stdio.h>int main(){ int n,i; double sum=0.00,M=2.00,N=…… 题解列表 2018年02月24日 0 点赞 0 评论 703 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:注意事项:注意小于等于,不然差了好多,还有因为最后的sum为保留小数,所以a,b那边也要double参考代码:#include<stdio.h>int main(){ double C=0…… 题解列表 2018年02月24日 0 点赞 0 评论 603 浏览 评分:0.0
蓝桥杯算法提高VIP-排列式 (C语言代码) 哎呀,不是*,是x(叉),我恨呀 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int a[10],b[10];int t;struct lee{ int a,b,c;}s[100],ss;void dfs(int …… 题解列表 2018年02月25日 0 点赞 1 评论 654 浏览 评分:0.0
统计立方数 (C语言代码) 摘要:#include <stdio.h>int main(){ int i=0,j,count=0; int a[10000]; while(scanf("%d",&a[i++])…… 题解列表 2018年02月25日 0 点赞 0 评论 1075 浏览 评分:0.0