判断函数是奇数还是偶数
点击次数:24 次 发布日期:2008-11-26 15:51:49 作者:源代码网
|
n=num mod 2 if n=1 then Is_odd=true else Is_odd=false end if end function 是奇数返回真,是偶数返回假。 源代码网供稿. |
|
n=num mod 2 if n=1 then Is_odd=true else Is_odd=false end if end function 是奇数返回真,是偶数返回假。 源代码网供稿. |