单选题

执行下列程序,输入10,则y的值是?( )
x = int(input())
if x!=0:
if x>0:
y=-1
else:
y=1
else:
y=0

A

0

B

1

C

-1

D

10

赣ICP备20007335号-2