2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<iomanip> using namespace std; int mai…… 题解列表 2023年11月01日 0 点赞 0 评论 95 浏览 评分:0.0
题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <math.h>int main(){ double m; int ret; do{ …… 题解列表 2023年08月17日 0 点赞 0 评论 200 浏览 评分:0.0
感谢支持,谢谢你们的支持 摘要:解题思路:#include<iostream>using namespace std;int main(){ int x,y; cin>>x>>y; if(x>y) { …… 题解列表 2023年05月13日 0 点赞 0 评论 281 浏览 评分:0.0
逻辑表达式与条件分支--2.输出绝对值 摘要:求浮点数的绝对值:#include<math.h>fabs(a)参考代码:#include<stdio.h>#include<math.h>int main(){ float a; scanf("%f…… 题解列表 2023年03月24日 0 点赞 0 评论 152 浏览 评分:0.0
2779 输出绝对值题解 摘要:解题思路:本题只需要按照题干的要求模拟输出即可。注意事项:1.绝对值,即非负数的绝对值为其本身,负数的绝对值为其相反数(即符号相反) 2.注意保留两位小数。可以用fixed和…… 题解列表 2022年12月31日 0 点赞 0 评论 208 浏览 评分:0.0