阅读背景:

上机作业2-2,3,4

来源:互联网 
2分段函数

#include<iostream>
using namespace std;
int main()
{
    double x,y;
    cin>>x;
    if(x>=1)
        {
            y=x-1;
            cout<<y;
        }
    else
    {
        y=1-x;
        cout<<y;
    }
	return 0;
#include<iostream>
using namespac



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: