Why result always same?, output always "good". input value integer
printf "Masukkan nilai IPK : "
read ipk
if [[ $ipk -ge 3,50 && $ipk -le 4,00 ]];
then printf "Awesome"
elif [[ $ipk -ge 2,75 && $ipk -lt 3,50 ]];
then printf "Nice"
elif [[ $ipk -ge 2,00 && $ipk -lt 2,75 ]];
then printf "Good"
else
echo "Sorry"
fi
Example output code like
Input : Masukkan nilai IPK : 3
Output : Good
Input : Masukkan nilai IPK : 4
Output : Good