7 lines
94 B
Text
7 lines
94 B
Text
func isOdd(n : int) -> int {
|
|
n % 2 == 1
|
|
}
|
|
|
|
func isEven(n : int) -> int {
|
|
n % 2 == 0
|
|
}
|