ci: tests for macOS on Gitlab CI
[nit.git] / examples / rosettacode / even_odd.nit
1 #!/usr/bin/env nit
2 #
3 # This file is part of NIT ( http://www.nitlanguage.org ).
4 # This program is public domain
5
6 # Task: Even or odd
7 # SEE: <http://rosettacode.org/wiki/Even_or_odd>
8
9 var x = 100
10 var y = 101
11 if x.is_even then print "{x} is even" else print "{x} is odd"
12 if y.is_even then print "{y} is even" else print "{y} is odd"