WU-C二级辅导-分段函数 (C语言代码) 摘要:参考代码:#include<stdio.h> int main() { double x; scanf("%lf",&x); if(x<1) printf("%.2lf\n",x)…… 题解列表 2017年12月12日 2 点赞 0 评论 960 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include"stdio.h"int main(){ double x; scanf("%lf",&x); if(x<1) { …… 题解列表 2017年12月18日 0 点赞 0 评论 636 浏览 评分:0.0
琪露诺的编程教室(C++代码) 摘要:解题思路:注意事项:参考代码#include <iostream> #include <cmath>#include <cstring>#include <iomanip>using namespac…… 题解列表 2017年12月28日 0 点赞 0 评论 914 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:/*有一个函数如下,写一程序,输入x,输出y值。 x(x<1)y= 2x-1(1<=x<10) 3x-11(x>=10)保留两位小数*/#include <stdio.h…… 题解列表 2018年03月04日 0 点赞 0 评论 816 浏览 评分:0.0
简简单单,,,,,有一个函数如下,写一程序,输入x,输出y值。 摘要:解题思路:没啥难度,怎么想怎么做注意事项:两位小数参考代码:#include<iostream> #include <iomanip> using namespace std; int main…… 题解列表 2024年07月30日 0 点赞 0 评论 181 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:#include<stdio.h> int main() { double x; scanf("%lf",&x); if(x<1) printf("%.2f\n",…… 题解列表 2018年05月02日 0 点赞 0 评论 466 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:用if else语句注意事项:定义可以为整数,输出时整形转换为字符形。参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d",&x); …… 题解列表 2018年07月12日 0 点赞 0 评论 382 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ float x=0; scanf("%f",&x); printf("%.2f",(x < …… 题解列表 2024年05月11日 0 点赞 0 评论 354 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float x,y; scanf("%f",&x); if(x<1) { …… 题解列表 2018年08月23日 0 点赞 0 评论 638 浏览 评分:0.0
C二级辅导-分段函数 (C语言代码) 摘要:解题思路:注意事项:既然要输出小数,就设为浮点型吧,输入输出为%lf,参考代码:#include<stdio.h>int main(){ double a,y,x; scanf("%lf",…… 题解列表 2018年09月28日 4 点赞 1 评论 528 浏览 评分:0.0