题目

已知函数y=给出x的值,计算出y的值. 答案:解析:x=input(“x=”);if  x<-1   y=x*2;else   if  x<=1      y=0;   else      y=(-2)*x;   endendprint(%io(2),y);
数学 试题推荐