How do I check whether a variable has an even numeric value?

前端 未结 3 741
走了就别回头了
走了就别回头了 2020-12-25 11:06

How should I change this to check whether val has an even or odd numeric value?

val=2
if $((RANDOM % $val)); ...
3条回答
提交回复
热议问题