1 stable release
1.0.0 | Mar 14, 2023 |
---|
#2572 in Algorithms
Used in 2 crates
3KB
is-even-or-odd
Returns true if the given number is even or odd.
Install
Specify the dependencty in Cargo.toml:
[dependencies]
is-even-or-odd = "1"
Fetch it with cargo:
$ cargo build
Usage
use is_even_or_odd::IsEvenOrOdd;
let _i : i32 = 1;
println!("{}", _i.is_even_or_odd()); // prints true
About
License
Copyright © 2018, purewhite. Released under the MIT License.
Dependencies
~5KB