天天看點

case邏輯判斷基數還是偶數

case邏輯判斷基數還是偶數

注:*)   echo "it is not a odd or even",隻是語句完善,因為輸入無論數字還是字元串不是0就是1

[root@linux9 ~]# sh case.sh

please input a number: 2333

the number is odd

please input a number: 6666

the number is even

繼續閱讀