[单选题]请判断如下程序的运行结果是将三个数( )。
print("请输入3个数")
x=int(input("x="))
y=int(input("y="))
z=int(input("z="))
temp=0
if x>y:
temp=y
y=x
x=temp
if x>z:
temp=z
z=X
x=temp
if y>z:
temp=z
z=y
y=temp
print("这3个数新序列是:",x,y,z)
A从小到大排序
B从大到小排序
C都变成最大的数
D都变成最小的数
纠错
收藏
查看答案