题解 2794: 求平均年龄(c++) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n; cin>>n; int s…… 题解列表 2024年01月09日 0 点赞 0 评论 240 浏览 评分:0.0
2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { int n…… 题解列表 2023年11月11日 0 点赞 0 评论 370 浏览 评分:0.0
2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; double b,c; cin>>n; for…… 题解列表 2023年11月05日 0 点赞 0 评论 191 浏览 评分:0.0
简易,易懂 摘要:解题思路:注意事项:参考代码:int main (){ int n; float sum=0; scanf ("%d",&n); float a[n]; for (int…… 题解列表 2024年12月03日 2 点赞 0 评论 579 浏览 评分:0.0
题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a,b[100]; float sum=0; s…… 题解列表 2025年01月25日 0 点赞 0 评论 635 浏览 评分:0.0
2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long n; double b=0…… 题解列表 2024年01月08日 0 点赞 0 评论 169 浏览 评分:0.0
求平均年龄 摘要:解题思路:注意事项:参考代码: double a,sum,b,num; cin>>a; if(a>=1.0 && a<=100.0){ sum=0; for (in…… 题解列表 2023年07月28日 0 点赞 0 评论 218 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,age,sum=0 ; cin>>…… 题解列表 2023年07月01日 0 点赞 0 评论 348 浏览 评分:0.0
求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0,age; cin>>n…… 题解列表 2023年07月01日 0 点赞 0 评论 216 浏览 评分:0.0
建立大数组,用索引循环输入,保留小数计算时用double 摘要:解题思路:如果在循环中输入,则应该先建立一个数组a[10000],后接for循环时用i做索引,cin>>a[i],这样后面计算sum +=a[i]就可以,补充double sum=0。注意事项:记得看…… 题解列表 2024年12月02日 0 点赞 0 评论 408 浏览 评分:0.0