C语言训练-求具有abcd=(ab+cd)2性质的四位数 (C语言代码) 摘要:#include<stdio.h> int fun(int n); int main() { int i; for(i=1000; i<10000; i++) {…… 题解列表 2017年11月17日 0 点赞 0 评论 1299 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n, i=0, j; int m[i]; scanf("%d",&n); if…… 题解列表 2017年11月17日 0 点赞 0 评论 1091 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.3 (C语言代码) 摘要:#include <stdio.h> int main() { int sn=0,m=0,i,n; scanf("%d",&n); for(i=0;i<n;i++) { m=…… 题解列表 2017年11月17日 1 点赞 0 评论 922 浏览 评分:0.0
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 评论 767 浏览 评分: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 评论 1031 浏览 评分: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 评论 1059 浏览 评分: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 评论 744 浏览 评分: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 评论 1232 浏览 评分:0.0
C语言训练-求PI* (C语言代码) 摘要:注意事项:题目中说当某一项的绝对值小于10-6为止,这个地方题有点坑啊,这一项并没有加入。注意这个就好了参考代码:#include<stdio.h> #include<math.h> int m…… 题解列表 2017年11月16日 0 点赞 1 评论 664 浏览 评分: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 评论 1403 浏览 评分:6.0