编程:输入三个数x,y,z.然后按从大到小输出
算法:
input X,y,z
dim max
compare X,y
(x>y)
max=x
(x<y)
max=y
(x=y)
max=x
compare max,z
(max>z)
max=max
(max<z)
max=z
(max=z)
max=max
max
算法:
input X,y,z
dim max
compare X,y
(x>y)
max=x
(x<y)
max=y
(x=y)
max=x
compare max,z
(max>z)
max=max
(max<z)
max=z
(max=z)
max=max
max