题解 1848: 求输入数据绝对值 摘要:#include <stdio.h> #include <math.h> int main() { double num; while (scanf("%lf", &num…… 题解列表 2024年04月09日 0 点赞 0 评论 190 浏览 评分:0.0
1848: 求输入数据绝对值 摘要:```c++ #include #include #include using namespace std; int main() { double st; whil…… 题解列表 2023年05月12日 0 点赞 0 评论 180 浏览 评分:0.0
最简单解法,一看就会,不会的找我。 摘要:解题思路:无脑解法注意事项: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
求输入数据绝对值,简单 摘要:解题思路:注意事项:1.整型用abs,浮点型用fabs.参考代码:#include<stdio.h>#include<math.h>int main(){ double a; while(scanf(…… 题解列表 2022年07月19日 0 点赞 0 评论 164 浏览 评分:0.0
求输入数据的绝对值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
求输入数据绝对值-题解(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