比较三个数
#!/bin/bash
echo "enter:"
read a b c
if [ $a -gt $b ]
then
max=$a
else
max=$b
fi
if [ $c -gt $max ]
then
max=$c
fi
echo "$max"
比较三个数
#!/bin/bash
echo "enter:"
read a b c
if [ $a -gt $b ]
then
max=$a
else
max=$b
fi
if [ $c -gt $max ]
then
max=$c
fi
echo "$max"
下一篇:一百以内的偶数之和
输入三个数,按从大到小排列
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M