C语言程序设计教程(第三版)课后习题5.6 (C语言代码) 摘要:解题思路:多分支语句switch() case注意事项:注意100这个,,,需要注意的在代码中已经注释出来了参考代码:#include<stdio.h>int main(){ int a; …… 题解列表 2017年10月18日 0 点赞 0 评论 1219 浏览 评分:0.0
【亲和数】 (C语言代码) 摘要:注意事项:各位智商都比我高,我就不BB了参考代码:代码1: (我已经很努力了,但还是很长O.O)#include<stdio.h>int main(){ int M,a,b,sum_a,sum_…… 题解列表 2017年10月18日 0 点赞 0 评论 930 浏览 评分:0.0
A+B for Input-Output Practice (C语言代码) 摘要:注意事项:参考代码:#include<stdio.h>int main(){ int n,N,sum,temp; scanf("%d",&N); while(N--&&(~scanf…… 题解列表 2017年10月18日 0 点赞 0 评论 813 浏览 评分:0.0
A+B for Input-Output Practice (VII) (C语言代码) 摘要:注意事项:初始的那个代码!!格式坑死人:followed by a blank line。参考代码:#include<stdio.h>int main(){ int a,b; while(…… 题解列表 2017年10月18日 0 点赞 0 评论 1099 浏览 评分:0.0
A+B for Input-Output Practice (VI) (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int N,sum,temp; while( ~scanf("%d",&N) ){ sum = 0; …… 题解列表 2017年10月18日 0 点赞 0 评论 920 浏览 评分:0.0
A+B for Input-Output Practice (V) (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int n,N,sum,temp; scanf("%d",&N); while(N--&&(~scanf("%d"…… 题解列表 2017年10月18日 0 点赞 0 评论 765 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int a,b,c;scanf("%f,%f",&a,&b);c=a+b;printf("%f",c);retur…… 题解列表 2017年10月18日 0 点赞 0 评论 809 浏览 评分:0.0
A+B for Input-Output Practice (IV) (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int n,sum,temp; while( (~scanf("%d",&n)) && n){ sum =…… 题解列表 2017年10月18日 0 点赞 0 评论 1000 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d",&a,&b)){ if((a+b)==0)break; …… 题解列表 2017年10月18日 0 点赞 0 评论 1167 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<1) { y=…… 题解列表 2017年10月18日 0 点赞 0 评论 962 浏览 评分:0.0