杨辉三角 (C语言代码) 摘要:解题思路:还算可以两个数组 交替后一个是前一个的累计注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int n; int a[100…… 题解列表 2019年04月22日 0 点赞 0 评论 1077 浏览 评分: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 评论 1402 浏览 评分: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 评论 1518 浏览 评分:0.0
[编程入门]三个数找最大值 (C语言代码) 摘要:解题思路:此题可用多分支选择结构来解,以有关系运算符和逻辑运算符的判断表达式来配合注意事项:参考代码:#include<stdio.header>int m (){ int a,b,c; scan…… 题解列表 2019年04月22日 0 点赞 0 评论 701 浏览 评分:0.0
[编程入门]数字的处理与判断 (C语言代码) 摘要:解题思路:注意此题输入输出均为计算整型格式而非字符型,而且题目在选择结构要求解题范畴内注意事项:参考代码:#include<stdio.header>int m (){ int m,n,a,b,c…… 题解列表 2019年04月22日 0 点赞 0 评论 1036 浏览 评分:0.0
[编程入门]迭代法求平方根 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int X; double X2=0,X1=0; sca…… 题解列表 2019年04月22日 0 点赞 0 评论 829 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.header>int m (){ int m,n,a,b,i; scanf("%d %d",&m,&n); if(m<n)/*选择结构判…… 题解列表 2019年04月22日 0 点赞 0 评论 808 浏览 评分:0.0
大小写转换 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[80]; int k,i; while(scanf("%s"…… 题解列表 2019年04月22日 0 点赞 0 评论 733 浏览 评分:0.0
[编程入门]数组插入处理 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.header>int m (){ int i,n,m,a[9],b[10];/*题目要求根据给定的数组求新数组,因此要定义两个数组*/ …… 题解列表 2019年04月22日 0 点赞 0 评论 1073 浏览 评分:0.0
[编程入门]实数的打印 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.header>int m (){ float a; int i,j; scanf("%f",&a); for(i=1;i<=3;i++)…… 题解列表 2019年04月22日 0 点赞 0 评论 544 浏览 评分:0.0