题目内容
编写程序,对于函数y=![]()
要求输入x值,输出相应的y值.
程序:
Input x
If x=0 then
y=10
Else
If x>0 then
y=(x-3)^ 2
Else
y=(x+3)^ 2
End if
End if
Print y
End
练习册系列答案
相关题目
题目内容
编写程序,对于函数y=![]()
要求输入x值,输出相应的y值.
程序:
Input x
If x=0 then
y=10
Else
If x>0 then
y=(x-3)^ 2
Else
y=(x+3)^ 2
End if
End if
Print y
End