問題詳情:
閱讀下列程序:
Read x
if x<0 then y←
else if x>0 then y←
else y←0
End If
Print y
如果輸入x=-2,則輸出結果y爲( )
(A)3+ (B)3- (C)-5 (D)--5
【回答】
B
知識點:算法初步
題型:解答題