感谢支持,谢谢你们的支持 摘要:解题思路:#include<iostream>using namespace std;int main(){ int x,y; cin>>x>>y; if(x>y) { …… 题解列表 2023年05月13日 0 点赞 0 评论 596 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; if(a<0) {…… 题解列表 2023年05月13日 0 点赞 0 评论 523 浏览 评分:6.0
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a; scanf("%lf",&a); prin…… 题解列表 2023年03月24日 0 点赞 0 评论 847 浏览 评分:9.9
逻辑表达式与条件分支--2.输出绝对值 摘要:求浮点数的绝对值:#include<math.h>fabs(a)参考代码:#include<stdio.h>#include<math.h>int main(){ float a; scanf("%f…… 题解列表 2023年03月24日 0 点赞 0 评论 558 浏览 评分:0.0
输出绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x; scanf("%lf",&x); p…… 题解列表 2022年12月30日 0 点赞 0 评论 896 浏览 评分:8.0
C语言解决输出绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){double x;scanf("%lf",&x);if(x<0)printf("%.2f\n",-x);if(x>…… 题解列表 2022年11月02日 1 点赞 3 评论 1691 浏览 评分:9.0
求绝对值的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ float a; scanf("%f",&a); if(a>=0){ printf("%.2f",a); }…… 题解列表 2022年10月25日 0 点赞 0 评论 856 浏览 评分:7.0