编写题解 2837: 年龄与疾病 摘要:解题思路:注意事项:参考代码: public static void main(String args[]) { Scanner sc=new Scanner (System.in); i…… 题解列表 2024年01月31日 0 点赞 0 评论 302 浏览 评分:6.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 评论 284 浏览 评分:7.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 评论 386 浏览 评分:8.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 评论 536 浏览 评分:8.2
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 评论 657 浏览 评分:9.0
2837: 年龄与疾病(C语言) 摘要:解题思路:注意事项:1.%%打印百分号2.整形除整形会进行截断运算参考代码:#include<stdio.h>int main(void){ int n; scanf("%d", &n); int a…… 题解列表 2023年05月14日 0 点赞 0 评论 1051 浏览 评分:9.9
年龄与疾病(C++代码) 摘要:参考代码:#include <iostream>#include <iomanip>using namespace std;int main() { int n; cin >> n; …… 题解列表 2023年07月14日 0 点赞 0 评论 481 浏览 评分:9.9
2837: 年龄与疾病 摘要:解题思路:%.2f%%指定了输出的格式:%.2f表示输出一个浮点数,保留两位小数,%%表示输出一个百分号字符。记得还要*100注意事项:参考代码:#include<stdio.h>int main()…… 题解列表 2024年07月17日 0 点赞 0 评论 394 浏览 评分:9.9
整齐美观,易懂有注释(两种方法)!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,i; int a=0,b=0,c=0,d=0; scanf("%d",&m);…… 题解列表 2023年10月22日 0 点赞 0 评论 537 浏览 评分:9.9