题目内容

用条件语句描述下面的算法流程图.

                          

Read  x

If  x<0  Then

y←2×x+3

Else

If  x>0  Then

y←2×x-5

Else

y←0

End  If

End  If

Print  y

End


解析:

Read  x

If  x<0  Then

y←2×x+3

Else

If  x>0  Then

y←2×x-5

Else

y←0

End  If

End  If

Print  y

End

练习册系列答案
相关题目

违法和不良信息举报电话:027-86699610 举报邮箱:58377363@163.com

精英家教网