C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:解题思路:级联的if-else if语句注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) y=x; el…… 题解列表 2018年09月17日 0 点赞 0 评论 1239 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题4.9 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float c,f; scanf("%f",&f); c=5*(f-32)/9; printf("c=%.2f…… 题解列表 2018年09月17日 0 点赞 0 评论 1120 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.4 (C语言代码) 摘要:解题思路:最常规的方法,三个数两两比较。注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; int max; scanf("%d%d%d",&a,&b,…… 题解列表 2018年09月17日 0 点赞 0 评论 1443 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main {int a ,b,sum;scanf("%d,%d",&a,&b);sum=a+b;printf("sum is %…… 题解列表 2018年09月17日 0 点赞 0 评论 869 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; for(i=1;i<=26;i++) printf("*"); printf("\n"); pri…… 题解列表 2018年09月16日 0 点赞 0 评论 998 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:法一:/*#include<stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); a=(a>b?a:b)>c?…… 题解列表 2018年09月16日 0 点赞 0 评论 1487 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路: 在原来的字母字符上加5注意事项:参考代码:#include <stdio.h>#define N 5int main(void){ char c[N]={'C',&#…… 题解列表 2018年09月16日 0 点赞 0 评论 1039 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:我给的代码不止是题中的输入,其他的输入字符都能。注意事项:参考代码:#include<stdio.h>int main(){ char s[20]; int i; scanf("%s",&s…… 题解列表 2018年09月16日 0 点赞 0 评论 1384 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:可先假设a为最大值,再和b,c比较。注意事项:是两个if语句,第二个而不是else if语句。参考代码:#include<stdio.h>int main(){ int a,b,c; int…… 题解列表 2018年09月16日 0 点赞 0 评论 1553 浏览 评分:0.0
最帅的我,LDM 过来膜拜吧!! 摘要:解题思路:注意带参注意事项:别打错符号就可以了!参考代码:#include<stdio.h>#define N(x,y) t=x,x=y,y=tint main(){ int x,y,t; scanf…… 题解列表 2018年09月16日 0 点赞 0 评论 961 浏览 评分:0.0