谁能帮我写写shell脚本 :从键盘输入三个整数,计算其中的最小值!
谁能帮我写写shell脚本 :从键盘输入三个整数,计算其中的最小值!
[解决办法]
很简单。
- BatchFile code
echo input 3 integers:read a b cif [ $a -lt $b ] then d=$aelse d=$b;fiif [ $d -lt $c ]then a=$delse a=$cfiecho $a
发布时间: 2012-07-28 12:25:13 作者: rapoo
谁能帮我写写shell脚本 :从键盘输入三个整数,计算其中的最小值!
谁能帮我写写shell脚本 :从键盘输入三个整数,计算其中的最小值!
[解决办法]
很简单。
echo input 3 integers:read a b cif [ $a -lt $b ] then d=$aelse d=$b;fiif [ $d -lt $c ]then a=$delse a=$cfiecho $a