题解 1007: [编程入门]分段函数求值

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

C++简单解法

摘要:#includeusing namespace std;int main(void){ int x; cin>>x; if (x……

分段函数求值

摘要:解题思路:选择语句的使用注意事项:if和else if的()括号不能加;参考代码:#include <stdio.h>#include <stdlib.h>int main(){    int x,y……