文件名称:3
介绍说明--下载内容来自于网络,使用问题请自行百度
输入三个整数x,y,z,请把这三个数由小到大输出。
1.程序分析:我们想办法把最小的数放到x上,先将x与y进行比较,如果x>y则将x与y的值进行交换,
然后再用x与z进行比较,如果x>z则将x与z的值进行交换,这样能使x最小。-Enter three integers x, y, z, please these three the number of small to large output.
A program analysis: we want to approach the smallest number on the x and compare the first x and y, if x> y then x and y values are exchanged,
Then compare the x and z, for x> z then x and z values to be exchanged, so make x the smallest.
1.程序分析:我们想办法把最小的数放到x上,先将x与y进行比较,如果x>y则将x与y的值进行交换,
然后再用x与z进行比较,如果x>z则将x与z的值进行交换,这样能使x最小。-Enter three integers x, y, z, please these three the number of small to large output.
A program analysis: we want to approach the smallest number on the x and compare the first x and y, if x> y then x and y values are exchanged,
Then compare the x and z, for x> z then x and z values to be exchanged, so make x the smallest.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
