[编程入门]水仙花数判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>main(){ int i,x,y,z; for(i=100;i<1000;i++)//确定三位数范围 { …… 题解列表 2019年04月30日 0 点赞 0 评论 546 浏览 评分:0.0
[编程入门]完数的判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,i,j,x; scanf("%d",&n); for…… 题解列表 2019年04月30日 0 点赞 0 评论 1119 浏览 评分:0.0
[编程入门]宏定义之找最大数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define MAX(a,b,c) {if(a>b&&a>c)printf("%.3f\n",a);else if(b>a&&b>…… 题解列表 2019年04月30日 0 点赞 0 评论 684 浏览 评分:0.0
[编程入门]宏定义之闰年判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define YEAR(y) {if(y%4==0&&y%100!=0||y%100==0&&y%400==0)printf("L…… 题解列表 2019年04月30日 0 点赞 0 评论 689 浏览 评分:0.0
[编程入门]自定义函数求一元二次方程 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { void root1(int a,int b,int …… 题解列表 2019年04月30日 0 点赞 0 评论 730 浏览 评分:0.0
C语言训练-列出最简真分数序列* (C语言代码) 摘要:解题思路: 所求分子为与40的最大公约数为1的数注意事项:参考代码:#include<stdio.h>int gcd(int a,int b);int main(){ int i; for(i=1;i…… 题解列表 2019年04月30日 0 点赞 0 评论 398 浏览 评分:0.0
利用冒泡法找前10名 (C语言代码) 摘要:解题思路:利用冒泡法进行10趟比较找出前十名的数据,没进行一趟比较就输出一个数据注意事项:注意冒泡法的用法即可。参考代码:#include"stdio.h"#include"malloc.h"int …… 题解列表 2019年04月30日 1 点赞 0 评论 782 浏览 评分:0.0
蛇行矩阵 (C语言代码) 摘要:解题思路://首先我们可以观察题目//1 3 6 10 15//2 5 9 14//4 8 13//7 12//11 //发现每一行都有规律,例如第一行设m=1,1+m=3,m++;3+m=6;以此类…… 题解列表 2019年04月30日 2 点赞 0 评论 433 浏览 评分:0.0
C二级辅导-计负均正 (C语言代码) 摘要:解题思路:注意事项:利用数组来保存20个数参考代码:#include<stdio.h>int main(){ int i,n=0,a[20],k=0; float t,sum=0; for(i=0;i…… 题解列表 2019年04月30日 0 点赞 0 评论 592 浏览 评分:0.0
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:最大公倍数=两数之积/最大公约数参考代码:#include<stdio.h>int gongyue(int m,int n){ if(m%n==0) return n; retur…… 题解列表 2019年04月30日 0 点赞 0 评论 482 浏览 评分:0.0