shell

时间:2021-01-14 11:01:53   收藏:0   阅读:0

#!/bin/bash
#筛选分数等级 score=500 if [ $score -gt 100 ];then
    echo "分数不正确"
elif [ $score -ge 80 ];then
    echo "优秀"
elif [ $score -ge 60 ];then
    echo "及格"
elif [ $score -ge 0 ];then
    echo "不及格"
else
    echo "分数不正确"
fi

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!