题目内容
阅读下面算法语句,当输入值依次为1.5,3,3.5,4.2时,其输出值依次为________.
输入x
if x<2 then y:=3×x+5
else if x<3 then y:=2sinx-1
else if x<4 then y:=1+x∧2
else y:=x∧2-2×x+5
输出y
end
答案:9.5,10,13.25,14.24
练习册系列答案
相关题目
题目内容
阅读下面算法语句,当输入值依次为1.5,3,3.5,4.2时,其输出值依次为________.
输入x
if x<2 then y:=3×x+5
else if x<3 then y:=2sinx-1
else if x<4 then y:=1+x∧2
else y:=x∧2-2×x+5
输出y
end