年龄与疾病(C++代码) 摘要:参考代码:#include <iostream>#include <iomanip>using namespace std;int main() { int n; cin >> n; …… 题解列表 2023年07月14日 0 点赞 0 评论 398 浏览 评分:9.9
2837: 年龄与疾病(C语言) 摘要:解题思路:注意事项:1.%%打印百分号2.整形除整形会进行截断运算参考代码:#include<stdio.h>int main(void){ int n; scanf("%d", &n); int a…… 题解列表 2023年05月14日 0 点赞 0 评论 984 浏览 评分:9.9
这个方法还不错! 摘要:解题思路:按题目意思写即可注意事项:输出注意浮点型参考代码:#include<stdio.h> void fun(int t) { int a=0,b=0,c=0,d=0,m,i; for…… 题解列表 2022年12月23日 0 点赞 0 评论 651 浏览 评分:9.9
年龄与疾病 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,s[100],j; scanf("%d",&n); double …… 题解列表 2023年01月13日 0 点赞 0 评论 388 浏览 评分:9.9
emm,感觉有点麻烦 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n; float a,b,c,d; a=0;b=0;c=0;d=0; scan…… 题解列表 2022年11月09日 0 点赞 2 评论 602 浏览 评分:9.0
一维数组--4.年龄与疾病 摘要:注意事项: 记得把b,c,d,e初始化为0,不然结果会出现错误;参考代码:#include<stdio.h> int main() { int n,a[100]; int b=0,c=0,…… 题解列表 2023年03月24日 0 点赞 0 评论 460 浏览 评分:8.2
编写题解 2837: 年龄与疾病 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int jibing(int A[100],float n){ int i; float w,x,y,z; for(i=0;i<n;…… 题解列表 2022年11月23日 0 点赞 0 评论 335 浏览 评分:8.0
年龄与疾病(C语言) 摘要:#include<stdio.h> void my_fun(int *p,int n) { double rate1,rate2,rate3,rate4; int a=0,b=0,c=0,…… 题解列表 2023年02月13日 0 点赞 0 评论 224 浏览 评分:7.2
编写题解 2837: 年龄与疾病 摘要:解题思路:注意事项:参考代码: public static void main(String args[]) { Scanner sc=new Scanner (System.in); i…… 题解列表 2024年01月31日 0 点赞 0 评论 239 浏览 评分:6.0
某医院想统计一下某项疾病的获得与否与年龄是否有关,需要对以前的诊断记录进行整理,按照0-18、19-35、36-60、61以上(含61)四个年龄段统计的患病人数占总患病人数的比例。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,x,a=0,b=0,c=0,d=0; scanf("%d",&n); for(…… 题解列表 2024年04月22日 0 点赞 0 评论 284 浏览 评分:0.0