二级C语言-平均值计算
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int t,n,a[15],s;//定义int main(){ for(int i=……
2022.5.7 C语言-平均值计算-数组解法
摘要:解题思路: 第一次写数组,翻看好几个xd的,怎么写都不对;后面自己摸索出来了,发出来造福跟我一样的小白们。注意事项: count一定要先赋个0!!参考代码:#include<stdio.h……
yes sbsbsbsbsb
摘要:解题思路:sbsbsbsb注意事项:sbsbsbsb参考代码:#include <stdio.h>#include <stdlib.h>#define N 10//输入10个数,求它们的平均值,并输出……
编写题解 1053: 二级C语言-平均值计算
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a[10]; int count=0; in……
1053: 二级C语言-平均值计算
摘要:解题思路:建一个大小为10个int的数组,用for循环存放输入数据以及比较大小。注意事项:我把输入数据当成是有序的了,花了十分钟找bug,也是醉了。参考代码:#include <iostream>
……