简单判断分支 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ float x,y;&nbs…… 题解列表 2026年07月14日 0 点赞 0 评论 106 浏览 评分:0.0
普普通通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ double y; int x; scanf ("%d",&x); if (x < 1) { y = x;…… 题解列表 2024年11月16日 0 点赞 0 评论 932 浏览 评分:0.0
1057 分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float n; scanf("%f",&n); if(n<1.00) printf("%.2f…… 题解列表 2024年05月25日 0 点赞 0 评论 672 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ float x=0; scanf("%f",&x); printf("%.2f",(x < …… 题解列表 2024年05月11日 0 点赞 0 评论 793 浏览 评分:0.0
用%0.2f规定输出格式 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void main(){ int x; double y; scanf("%d",&x); if(x<1)y=x; else if(x>…… 题解列表 2024年03月11日 0 点赞 0 评论 589 浏览 评分:0.0
二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:C#include<stdio.h>int main(){ double x; scanf("%lf",&x); if(x<1) printf("%.2lf",x); e…… 题解列表 2023年03月07日 0 点赞 0 评论 520 浏览 评分:0.0
二级C语言-分段函数(水题) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int x; scanf("%d",&x); if(x<1) printf("%.2f",1.0*x); if…… 题解列表 2023年01月09日 0 点赞 0 评论 713 浏览 评分:9.9
二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fun(double x){ if(x<1) { return x; } else if(x>=1 && x<10) {…… 题解列表 2022年12月18日 0 点赞 0 评论 552 浏览 评分:9.9
1057编写分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x; float y; scanf("%d",&x); { if(x<1) …… 题解列表 2022年10月30日 0 点赞 0 评论 481 浏览 评分:0.0
题解 1057: 二级C语言-分段函数(C) 摘要:解题思路:if嵌套选择即可解决参考代码:#include<stdio.h> int main(void){ float x,y; scanf("%f",&x); if(x<1)…… 题解列表 2022年08月09日 0 点赞 0 评论 733 浏览 评分:0.0