1848: 求输入数据绝对值 摘要:s=float(input()) a=float(input()) print('{:.2f}'.format(abs(s))) print('{:.2f}'.f…… 题解列表 2022年01月09日 0 点赞 0 评论 212 浏览 评分:0.0
1848: 求输入数据绝对值 摘要:解题思路:注意事项:参考代码:while True: try: x = input() print('%.2f'%abs(float(x)…… 题解列表 2021年12月31日 0 点赞 0 评论 391 浏览 评分:9.9
求输入数据的绝对值C++ 摘要:解题思路:基础注意事项:注意细节部分参考代码:#include<stdio.h>int main(){ double a,b;; while(scanf("%lf",&a)!=EOF) { if(a…… 题解列表 2021年11月02日 0 点赞 0 评论 465 浏览 评分:9.9
多组输入~~~ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double n; while(scanf("%lf",&n)!=EOF) pr…… 题解列表 2021年07月19日 0 点赞 0 评论 482 浏览 评分:9.9
求输入数据绝对值-题解(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2021年02月09日 0 点赞 0 评论 1268 浏览 评分:6.0
求输入数据绝对值-题解(C语言代码) 摘要:解题思路:注意事项:注意绝对值的使用时 double 的数据使用为 fabs(n)即可对 n 取绝对值参考代码:#include <stdio.h> #include <math.h> int m…… 题解列表 2021年02月07日 0 点赞 0 评论 610 浏览 评分:8.0
求输入数据绝对值-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b; scanf("%lf%lf",&a,&b); print…… 题解列表 2021年02月05日 0 点赞 0 评论 174 浏览 评分:0.0
求输入数据绝对值-题解(C语言代码) 摘要:解题思路:题目没有给出停止的条件,但是又不知道什么时候停止,则需要用EOF注意事项:参考代码:#include<stdio.h> int main() { float q; w…… 题解列表 2020年12月30日 0 点赞 0 评论 216 浏览 评分:0.0
求输入数据绝对值-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a; while(scanf("%lf",&a)!=EOF) { …… 题解列表 2020年08月16日 0 点赞 0 评论 273 浏览 评分:0.0
求输入数据绝对值-题解(C++代码) 摘要:```cpp #include #include #include using namespace std; int main(){ double n; while(ci…… 题解列表 2020年04月24日 0 点赞 0 评论 404 浏览 评分:0.0