一维数组--4.年龄与疾病
摘要:注意事项: 记得把b,c,d,e初始化为0,不然结果会出现错误;参考代码:#include<stdio.h>
int main()
{
int n,a[100];
int b=0,c=0,……
年龄与疾病(C语言)
摘要:#include<stdio.h>
void my_fun(int *p,int n)
{
double rate1,rate2,rate3,rate4;
int a=0,b=0,c=0,……
编写题解 2837: 年龄与疾病
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int jibing(int A[100],float n){ int i; float w,x,y,z; for(i=0;i<n;……
emm,感觉有点麻烦
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n; float a,b,c,d; a=0;b=0;c=0;d=0; scan……
编写题解 2837: 年龄与疾病
摘要:解题思路:1)定义4个count计数器2)输出%:'%.2f%%'%n注意事项:参考代码:n=int(input()) #病人数目
ages=list(map(int,input()……