文件名称:example66
介绍说明--下载内容均来自于网络,请自行研究使用
题目:输入三个整数x,y,z,请把这三个数由小到大输出。
1.程序分析:我们想办法把最小的数放到x上,先将x与y进行比较,如果x>y则将x与y的值进行交换,
然后再用x与z进行比较,如果x>z则将x与z的值进行交换,这样能使x最小。-Title: Enter three integers x, y, z, please put the three and a number of small to large output. 1. Program analysis: We want to approach the smallest number is placed on the x, compare the first x and y, if x> y is the value of x and y to be exchanged, then the x and z comparison, if x > z then the values of x and z are to be exchanged, this enables the x minimum.
1.程序分析:我们想办法把最小的数放到x上,先将x与y进行比较,如果x>y则将x与y的值进行交换,
然后再用x与z进行比较,如果x>z则将x与z的值进行交换,这样能使x最小。-Title: Enter three integers x, y, z, please put the three and a number of small to large output. 1. Program analysis: We want to approach the smallest number is placed on the x, compare the first x and y, if x> y is the value of x and y to be exchanged, then the x and z comparison, if x > z then the values of x and z are to be exchanged, this enables the x minimum.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
example66.doc