编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2024年12月08日 1 点赞 2 评论 354 浏览 评分:10.0
C++for循环简单实现 摘要:###### 解题思路: 对于输入中的换行,我们可以使用while()条件循环去解决,在输入n之后,在使用数组对输入的数进行存储,在定义一个double类型的sum(如果是int类型,就会出现结果是…… 题解列表 2023年06月02日 0 点赞 0 评论 481 浏览 评分:9.9
好写》好写 摘要:参考代码:#include<iostream> #include<stdio.h> using namespace std; int main() { int n; cin >>…… 题解列表 2024年01月03日 0 点赞 2 评论 190 浏览 评分:9.9
题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int m,sum; sum=0; ci…… 题解列表 2024年01月09日 0 点赞 0 评论 212 浏览 评分:9.9
题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int sum,m; sum=0; ci…… 题解列表 2024年01月09日 0 点赞 2 评论 165 浏览 评分:9.9
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n; scanf ("%d",&n); double aver=0,a; f…… 题解列表 2023年10月25日 1 点赞 0 评论 454 浏览 评分:9.9
2794:求平均年龄 摘要:注意事项:最后命令结果为浮点数时,要将表达式中n*1.0转化为浮点类型参考代码:#include<stdio.h>int main(){ int n,i,age,sum=0; scanf(…… 题解列表 2023年08月27日 0 点赞 2 评论 1378 浏览 评分:9.9
2794: 求平均年龄 摘要:解题思路:注意事项:要保留两位小数参考代码:#include<iostream>using namespace std;int main(){ int n,m; double sum = …… 题解列表 2024年01月09日 0 点赞 0 评论 220 浏览 评分:9.9
题解 2794求平均年龄 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=0; cin>>n; …… 题解列表 2024年01月09日 0 点赞 0 评论 474 浏览 评分:9.9
一点小思路,参考参考参考..... 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int b,sum,n; scanf("%d",&n); while(scanf("%d…… 题解列表 2024年01月31日 0 点赞 0 评论 770 浏览 评分:9.9