#include<iostream>
using namespace std;
int main()
{
int x,y,c;
cout<<"输入x值:"<<endl;
cin>>x;
cout<<"x="<<x<<endl;
c=x/2;
if (c<=0)
{ y=x;
cout <<"执行函数是:y=x"<<endl;}
else
if(c>=5)
{y=-x*x-1;
cout<<"执行函数是y=
using namespace std;
int main()
{
int x,y,c;
cout<<"输入x值:"<<endl;
cin>>x;
cout<<"x="<<x<<endl;
c=x/2;
if (c<=0)
{ y=x;
cout <<"执行函数是:y=x"<<endl;}
else
if(c>=5)
{y=-x*x-1;
cout<<"执行函数是y=