max=$1
min=$2
sum=0
for i in $@
do
if [ $max -lt $i ];then
max=$i
fi
if [ $min -gt $i ];then
min=$i
fi
let sum+=i
done
echo "max:$max"
echo "min:$min"
echo -n "average:"
echo "scale=2; $sum/$#" | bc
max=$1
min=$2
sum=0
for i in $@
do
if [ $max -lt $i ];then
max=$i
fi
if [ $min -gt $i ];then
min=$i
fi
let sum+=i
done
echo "max:$max"
echo "min:$min"
echo -n "average:"
echo "scale=2; $sum/$#" | bc