2

#!/bin/bash
echo "please input 1 number: "
read max
min=$max
sum=$max
for((i=2;i<=5;i++))
do
echo "please input ${i} number: "
read value
if [ $max -lt $value ]
then
max=$value
fi
done
echo "$max"

posted on 2018-06-26 19:57  技术小子2025  阅读(84)  评论(0)    收藏  举报

导航