1067:二级C语言-分段函数 摘要: #include #include int main() { float x; int i; scanf("%f",&x); …… 题解列表 2022年07月03日 0 点赞 0 评论 411 浏览 评分:8.0
二级C语言-分段函数 (C++代码) 摘要:利用单行选择语句 对不同的x的值 对y进行赋值 ```cpp #include #include using namespace std; int main() { …… 题解列表 2019年11月29日 0 点赞 0 评论 572 浏览 评分:7.5
2005年春浙江省计算机等级考试二级C 编程题(1) (C++代码) 摘要:题目给的图片有错误,正确的图片内容应该是:第一项:求绝对值第二项:求平方根第三项:求3次幂第四项:2 * x + 5答案我就不发表了,这里只是纠错…… 题解列表 2017年06月06日 0 点赞 0 评论 958 浏览 评分:6.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ float x; scanf("%f",&x); if(x<0…… 题解列表 2017年10月05日 0 点赞 0 评论 798 浏览 评分:6.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言描述if-else if语句) 摘要:解题思路:1.定义x为整型,函数f定义为double类型;2.要导入数学函数库"math.h";3.if……else if语句做判断。注意事项:输出时控制两位小数输出("%.2lf")参考代码:#in…… 题解列表 2017年11月20日 1 点赞 0 评论 1301 浏览 评分:6.0
此解可AC (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x, y; scanf("%lf", &x); if (x < 0…… 题解列表 2018年07月15日 3 点赞 0 评论 1807 浏览 评分:6.0
二级C语言-分段函数-题解(C语言代码) 摘要:解题思路:按题目所给的将每段函数都表达出来就行 注意事项:主要注意保留两位小数就行 参考代码: #include #include int main() { int x; do…… 题解列表 2021年01月29日 0 点赞 0 评论 487 浏览 评分:6.0
二级C语言-分段函数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int x; double y; scanf("%d",&x); if(x<0)…… 题解列表 2021年02月02日 0 点赞 0 评论 412 浏览 评分:6.0
1067: 二级C语言-分段函数(c++代码) 摘要:解题思路:分开来做注意事项:无参考代码:#include<iostream>#include<cmath>#include<iomanip>using namespace std;int main()…… 题解列表 2022年05月21日 0 点赞 0 评论 373 浏览 评分:6.0
二级编程,分段函数, 摘要:解题思路:注意事项:记得加头文件,更改数据类型参考代码:#include<iostream>#include <cmath>//头文件,必加 #include <iomanip>//同上using n…… 题解列表 2023年06月18日 0 点赞 0 评论 163 浏览 评分:6.0