不知道你使用的什么编程语言?给你vb参考:dim x as single,y as singleif x<1 theny=xelseif x>=1 theny=3*x-11elsey=2*x-1end if
if(X<1){y=x}else if (x>=1){if (x<10){y=2x-1}else{y=3x-11}}