C语言解决输出绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){double x;scanf("%lf",&x);if(x<0)printf("%.2f\n",-x);if(x>…… 题解列表 2022年11月02日 0 点赞 3 评论 1297 浏览 评分:9.0
输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>using namespace std;int main(){ …… 题解列表 2022年10月30日 0 点赞 0 评论 273 浏览 评分:8.0
求绝对值的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ float a; scanf("%f",&a); if(a>=0){ printf("%.2f",a); }…… 题解列表 2022年10月25日 0 点赞 0 评论 454 浏览 评分:7.0
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:print('%.2f'%abs(float(input()))) #print('{:.2f}'.format(abs(float(i…… 题解列表 2022年10月18日 1 点赞 0 评论 1275 浏览 评分:5.6
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { doubl…… 题解列表 2022年09月02日 0 点赞 0 评论 906 浏览 评分:7.3