编写题解 1848: 求输入数据绝对值 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ double a; while(cin>>a) {…… 题解列表 2024年07月18日 0 点赞 0 评论 206 浏览 评分:9.9
求输入数据绝对值 (C++代码) 摘要:注意事项:注意输入和输出类型即可 #include"bits/stdc++.h" using namespace std; int main() { float n; while(ci…… 题解列表 2018年06月11日 1 点赞 0 评论 1018 浏览 评分: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
最简单解法,一看就会,不会的找我。 摘要:解题思路:无脑解法注意事项:if(n%3!=0||n%2!=0||n%7!=0),要用||,不能用&&参考代码:#include<stdio.h>int main(){ int n; fo…… 题解列表 2022年10月22日 0 点赞 2 评论 402 浏览 评分:9.9
c语言:求输入数据绝对值----菜鸟级别 摘要:# 求输入数据绝对值--菜鸟级别 两种方法 1.使用if循环语句 2.使用math.h文件 第一种 #include int main() { float i; …… 题解列表 2022年07月27日 0 点赞 1 评论 861 浏览 评分: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
1848: 求输入数据绝对值 摘要:解题思路:注意事项:参考代码:while True: try: x = input() print('%.2f'%abs(float(x)…… 题解列表 2021年12月31日 0 点赞 0 评论 391 浏览 评分:9.9
求输入数据绝对值 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double m,n; while(scanf("%lf",&n)!=EOF) …… 题解列表 2019年01月09日 0 点赞 0 评论 1168 浏览 评分:8.4
求输入数据绝对值-题解(C语言代码) 摘要:解题思路:注意事项:注意绝对值的使用时 double 的数据使用为 fabs(n)即可对 n 取绝对值参考代码:#include <stdio.h> #include <math.h> int m…… 题解列表 2021年02月07日 0 点赞 0 评论 610 浏览 评分:8.0
求输入数据绝对值-题解(Java代码) 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2021年02月09日 0 点赞 0 评论 1268 浏览 评分:6.0