题目内容
编写程序,对于输入的x值,输出相应的y值:y=![]()
程序:
Input x
If x<0 then
y=x*x+4*x+3
Else
If x>=0 And x<1 then
y=-3*x+3
Else
y=-x*x+6*x-5
End if
End if
Print y
End
练习册系列答案
相关题目
题目内容
编写程序,对于输入的x值,输出相应的y值:y=![]()
程序:
Input x
If x<0 then
y=x*x+4*x+3
Else
If x>=0 And x<1 then
y=-3*x+3
Else
y=-x*x+6*x-5
End if
End if
Print y
End