input xif x<1 then y=x-1 else if 1<=x<10 then y=2(x-1) else y=3x-10 end ifend if print yend
用Java还是别的!!