Skip to main content
Commonmark migration
Source Link

#Scala, 9 bytes

Scala, 9 bytes

(_:Int)%2

This outputs 1 for odd, 0 for even

#Scala, 9 bytes

(_:Int)%2

This outputs 1 for odd, 0 for even

Scala, 9 bytes

(_:Int)%2

This outputs 1 for odd, 0 for even

Source Link

#Scala, 9 bytes

(_:Int)%2

This outputs 1 for odd, 0 for even