哪位高手能帮小弟我写写shell脚本 :从键盘输入三个整数,计算其中的最小值

谁能帮我写写shell脚本 :从键盘输入三个整数,计算其中的最小值!
谁能帮我写写shell脚本 :从键盘输入三个整数,计算其中的最小值!


很简单。

BatchFile code

echo input 3 integers:
read a b c
if [ $a -lt $b ]
then
d=$a
else
d=$b;
fi
if [ $d -lt $c ]
then
a=$d
else
a=$c
fi
echo $a

哪位高手能帮小弟我写写shell脚本 :从键盘输入三个整数,计算其中的最小值

相关文章:

你感兴趣的文章:

标签云: