[编程入门]迭代法求平方根 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int X; double X2=0,X1=0; sca…… 题解列表 2019年04月22日 0 点赞 0 评论 1040 浏览 评分:0.0
[编程入门]三个数找最大值 (C语言代码) 摘要:解题思路:此题可用多分支选择结构来解,以有关系运算符和逻辑运算符的判断表达式来配合注意事项:参考代码:#include<stdio.header>int m (){ int a,b,c; scan…… 题解列表 2019年04月22日 0 点赞 0 评论 796 浏览 评分:0.0
[编程入门]利润计算 (C语言代码) 摘要:参考代码:#include<stdio.h> void y(int x) { double y; switch(x/100000) { case 0:y=x*0.1;br…… 题解列表 2019年04月22日 0 点赞 0 评论 1867 浏览 评分:0.0
[编程入门]成绩评定 (C语言代码) 摘要:使用switch语句参考代码:#include<stdio.h> void y(int x) { char y; if(x<6&&x>=0) x=5; switch(x…… 题解列表 2019年04月22日 0 点赞 0 评论 1675 浏览 评分:0.0
杨辉三角 (C语言代码) 摘要:解题思路:还算可以两个数组 交替后一个是前一个的累计注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; int a[100…… 题解列表 2019年04月22日 0 点赞 0 评论 1212 浏览 评分:0.0
回文串 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int f(char a[]){ int i,j,k; k=strlen(a); for(i=0,j…… 题解列表 2019年04月22日 0 点赞 0 评论 828 浏览 评分:0.0
老王赛马 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sum;int a[1050],b[1050];void sort(int c[],int n){ int i,j,k; for…… 题解列表 2019年04月22日 0 点赞 0 评论 1080 浏览 评分:0.0
[编程入门]宏定义练习之三角形面积 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> #define S(a,b,c) (a+b+c)/2 #define area(a,b,c…… 题解列表 2019年04月22日 2 点赞 0 评论 1308 浏览 评分:0.0
速算24点 (C语言代码) 摘要:解题思路:括号没算进去大致看一下思路把注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>int jia(int a,int …… 题解列表 2019年04月22日 0 点赞 0 评论 2844 浏览 评分:5.2
C语言考试练习题_排列 (C语言代码) 摘要:#include <stdio.h> int main() { int i,j,k,m; int a[4]; int b[3]; for(i=0;i<4;i…… 题解列表 2019年04月22日 1 点赞 0 评论 1012 浏览 评分:0.0