题解 2796: 求整数的和与均值

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

求整数的和与均值

摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a; double sum=0; for(int i=……

2025/7/25刷题记录

摘要:解题思路:两个整数相除得浮点数结果要将其中一个数强转为浮点要不然会精度丢失注意事项:参考代码:#include<stdio.h>int main(){ int a……

无聊的星期六

摘要:无聊上个动态。 #include<stdio.h>  #include<stdlib.h> int main(){ int size,sum=0; scanf("%d",&size)……

2796: 求整数的和与均值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; double sum=0.0; scanf("%d",&n); int a[n]; for(int……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int n, i, j; double* a,aver,sum=0.0; s……