You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#! /bin/bash
read -p "Please input your score: " a
if ((a < 60)) ; then
echo "You didn`t pass the exam."
else
echo "good! You passed the exam."
fi
elif
#! /bin/bash
read -p "Please input your score: " a
if ((a < 60)) ; then
echo "You didn`t pass the exam."
elif ((a > 60)) && ((a < 85)); then
echo "Good! You passed the exam."
else
echo "Very good! Your score is very high!"
fi
SHELL Script
-lt ( < )(小于),-gt ( > )(大于),-le ( <= )(小于等于),-ge ( => )(大于等于),-eq ( = )(等于),-ne ( != )(不等于)
The text was updated successfully, but these errors were encountered: