感谢支持,谢谢你们的支持 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; if(a<0) {…… 题解列表 2023年05月13日 0 点赞 0 评论 273 浏览 评分:6.0
求绝对值的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ float a; scanf("%f",&a); if(a>=0){ printf("%.2f",a); }…… 题解列表 2022年10月25日 0 点赞 0 评论 514 浏览 评分:7.0
编写题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<iomanip> using namespace std; int main() { doubl…… 题解列表 2022年09月02日 0 点赞 0 评论 983 浏览 评分:7.3
小试牛刀!!!!!!!!!! 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main{ public static void main(String[] args)…… 题解列表 2023年02月19日 0 点赞 0 评论 515 浏览 评分:7.3
输出绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x; scanf("%lf",&x); p…… 题解列表 2022年12月30日 0 点赞 0 评论 583 浏览 评分:8.0
输出绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>using namespace std;int main(){ …… 题解列表 2022年10月30日 0 点赞 0 评论 343 浏览 评分:8.0
编写题解 2779: 输出绝对值,python超简单 摘要:解题思路:输入,注意是浮点数输出浮点数并保留两位小数注意事项:abs(N)计算浮点数N的绝对值。float(input())将用户输入的字符串转换为浮点数'%.2f' % abs(N)…… 题解列表 2024年03月14日 0 点赞 0 评论 923 浏览 评分:9.0
编写题解 2779: 输出绝对值 摘要:解题思路:float为浮点数函数'%.2f'保留两位数abs为绝对值函数注意事项:参考代码:n = float(input())print('%.2f'%(abs(n)…… 题解列表 2024年04月29日 3 点赞 0 评论 656 浏览 评分:9.0
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 评论 1383 浏览 评分:9.0
题解 2779: 输出绝对值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ double a; cin>>a; pr…… 题解列表 2023年12月23日 0 点赞 0 评论 411 浏览 评分:9.9