组卷题库 > 高中信息技术试卷库
试题详情
请判断如下程序的运行结果是将三个数(  )。

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、都变成最小的数
知识点
参考答案
采纳过本试题的试卷
教育网站链接