[编程入门]数组插入处理-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:int a[10]; int i,j,k,num,t; for(i = 0; i < 9; i ++) { scanf("%d",&a[i]); } scanf("%…… 题解列表 2020年12月01日 0 点赞 0 评论 409 浏览 评分:0.0
[编程入门]宏定义之找最大数-题解(C语言代码) 摘要:解题思路:宏定义和函数的返回值是最大值输出注意事项:宏定义用?:操作符,函数用if语句,也可以用?:求参考代码:#include<stdio.h> #define max(x,y,z) (x>y?x…… 题解列表 2020年12月01日 0 点赞 0 评论 625 浏览 评分:9.9
分类计算-题解(C语言代码)加油!!!! 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,d; scanf("%d%d",&a,&b); c=a*a+b*b; d=a+b; if(…… 题解列表 2020年12月01日 0 点赞 0 评论 322 浏览 评分:0.0
求平均工资-题解(C语言代码) 摘要:解题思路:注意事项:注意整数;参考代码:#include <stdio.h>int main(){ int a[100], n,i,sum,ave; scanf("%d",&n); sum=0; fo…… 题解列表 2020年12月01日 0 点赞 0 评论 605 浏览 评分:0.0
求阶梯水费-题解(C语言代码) 摘要:解题思路:注意事项:注意包含15!!!!!参考代码:#include <stdio.h>int main(){ int a,b; scanf("%d",&a); if(a<=15) b=2*a; if…… 题解列表 2020年12月01日 0 点赞 0 评论 416 浏览 评分:0.0
分段计算-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x,y; scanf("%d",&x); if(x<3) y=2*x; if(x>=3 && x<20…… 题解列表 2020年12月01日 0 点赞 0 评论 426 浏览 评分:0.0
输出M到N的数-题解(C语言代码) 摘要:解题思路:注意事项:注意M=N这种情况;参考代码:#include <stdio.h>int main(){ int M,N,i; scanf("%d%d",&M,&N); if(M<N) for(i…… 题解列表 2020年12月01日 0 点赞 0 评论 515 浏览 评分:8.0
[编程入门]阶乘求和-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j; long long a[21],sum1,sum2=0; scanf("%d",&n); …… 题解列表 2020年12月01日 0 点赞 0 评论 311 浏览 评分:9.9
求总时间-题解(C语言代码) 摘要:解题思路:注意事项:注意输出的小数;参考代码:#include <stdio.h>int main(){ int i,n; float sum=0,t=30; scanf("%d",&n); for(…… 题解列表 2020年12月01日 0 点赞 0 评论 264 浏览 评分:0.0
[编程入门]完数的判断-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,j,k,sum,count,m; int a[100]; scanf("%d",&n); for…… 题解列表 2020年12月01日 0 点赞 0 评论 377 浏览 评分:9.9