main() 
{ 
double x,y,k; 
printf("输入x:"); 
scanf("%lf",&x); 
if(x<0) 
y=-x; 
elseif(x=0) 
y=2; 
else 
y=k*x; 
printf("y=%ld",y); 
}