编写题解 2837: 年龄与疾病
摘要:解题思路:注意事项:参考代码: public static void main(String args[]) {
Scanner sc=new Scanner (System.in);
i……
年龄与疾病(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;……
一维数组--4.年龄与疾病
摘要:注意事项: 记得把b,c,d,e初始化为0,不然结果会出现错误;参考代码:#include<stdio.h>
int main()
{
int n,a[100];
int b=0,c=0,……
emm,感觉有点麻烦
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int n; float a,b,c,d; a=0;b=0;c=0;d=0; scan……
处理数据与输入数据同时进行
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<stdio.h>
using namespace std;
void add(int, int *);//统……
2837: 年龄与疾病
摘要:解题思路:%.2f%%指定了输出的格式:%.2f表示输出一个浮点数,保留两位小数,%%表示输出一个百分号字符。记得还要*100注意事项:参考代码:#include<stdio.h>int main()……
题解 2837: 年龄与疾病
摘要: #include
using namespace std;
int a[100],c;
double b,sh,q,z,l;
int main(){
……